fix(workspace): trim model-facing capability output - #148
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Greptile SummaryThe PR narrows model-facing workspace capability data while retaining compact provider and profile execution hints. It also propagates the opened workspace identity into CLI orchestration launched through the MCP shell.
Confidence Score: 5/5The PR appears safe to merge, with no concrete blocking or independently actionable non-blocking issue identified. The changed capability objects align with the catalog’s filtered data shapes, and shell working directories and injected identity values remain consistently scoped to the validated opened workspace.
|
| Filename | Overview |
|---|---|
| src/server.ts | Updates the open-workspace response schema and formatting, permits CLI orchestration through the shell tool, and passes the validated workspace identity into shell execution. |
| src/pi-tools.ts | Injects the opened workspace ID and root into spawned shell commands so nested CLI orchestration retains workspace scope. |
| src/local-agent-resolution.ts | Restricts profile suggestions in resolution errors to profiles backed by currently available providers. |
| src/local-agent-targets.ts | Filters formatted profile targets against the supplied provider availability list. |
| src/ui/workspace-dashboard.ts | Renders structured provider capabilities and profile provider/model/effort metadata. |
| src/ui/card-types.ts | Aligns dashboard card types with the revised structured capability response. |
| src/open-workspace-capabilities.test.ts | Updates schema assertions for structured provider capability and agent-profile output. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart LR
A[open_workspace] --> B[Filtered provider and profile catalog]
B --> C[Structured model-facing capabilities]
B --> D[Workspace dashboard]
A --> E[workspaceId and workspace root]
E --> F[MCP shell tool]
F --> G[Spawn environment]
G --> H[devspace agents and workflow CLI]
H --> I[Orchestration scoped to opened workspace]
Reviews (1): Last reviewed commit: "fix(agents): hide unavailable profiles f..." | Re-trigger Greptile
Workspace responses still exposed more agent/provider detail than models need, and CLI orchestration launched through MCP could lose the opened workspace scope.
This layer keeps capability summaries compact, removes unavailable providers and profiles from model-facing target discovery, and propagates the opened workspace identity into CLI orchestration. It also aligns the bundled documentation and skills with the CLI-first workflow model.
Depends on #144; it is the final layer of the local stack.