Commit f7bcead
committed
✨ feat(workspace): accept workspaceRoot as explicit request body field
Add workspaceRoot as an optional field in ChatCompletionRequest so
clients can explicitly pass the workspace directory. Resolution order:
1. body.workspaceRoot (explicit from client)
2. extractWorkspaceFromMessages() (parsed from system message)
3. process.cwd() (server working directory fallback)1 parent fca8532 commit f7bcead
2 files changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
751 | 752 | | |
752 | 753 | | |
753 | 754 | | |
754 | | - | |
| 755 | + | |
755 | 756 | | |
756 | 757 | | |
757 | 758 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
1543 | 1544 | | |
1544 | 1545 | | |
1545 | 1546 | | |
1546 | | - | |
1547 | | - | |
| 1547 | + | |
| 1548 | + | |
1548 | 1549 | | |
1549 | 1550 | | |
1550 | 1551 | | |
| |||
0 commit comments