Repository navigation
Revert "agentHost/claude: Phase 6 — sendMessage, single-turn, no tools" - #314358
Merged
Merged
Conversation
Sandeep Somavarapu (sandy081)
approved these changes
May 5, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR reverts the previously-introduced Phase 6 Claude agent-host implementation (#314216), rolling the agent host’s Claude provider back to the earlier Phase 4 “skeleton” state. As part of the revert, it removes the agent-host-side Claude Agent SDK dependency, the Phase 5/6 plans and integration test infrastructure that exercised the SDK/proxy round-trip, and restores Phase 4 smoke guidance.
Changes:
- Remove agent-host Claude SDK plumbing (SDK service/session/mapper/prompt resolver) and revert
ClaudeAgentsession/send behavior back to Phase 4 stubs. - Remove Claude Agent SDK dependency from root/remote packages and update the root lockfile + agentHost DI wiring accordingly.
- Update Claude smoke/roadmap docs to reflect the reverted phase expectations and artifacts.
Show a summary per file
| File | Description |
|---|---|
| src/vs/platform/agentHost/test/node/claudeAgent.integrationTest.ts | Removes the proxy-backed Claude SDK integration test (file deleted). |
| src/vs/platform/agentHost/node/claude/smoke.md | Updates smoke plan text/expectations for the reverted phases. |
| src/vs/platform/agentHost/node/claude/roadmap.md | Removes the “Phase 4 DONE” marker/reference details. |
| src/vs/platform/agentHost/node/claude/phase6-plan.md | Removes the Phase 6 implementation plan (file deleted). |
| src/vs/platform/agentHost/node/claude/phase5-plan.md | Removes the Phase 5 implementation plan (file deleted). |
| src/vs/platform/agentHost/node/claude/phase4-plan.md | Updates Phase 4 live-smoke checklist content. |
| src/vs/platform/agentHost/node/claude/claudePromptResolver.ts | Removes agent-host prompt resolver used for SDK prompts (file deleted). |
| src/vs/platform/agentHost/node/claude/claudeMapSessionEvents.ts | Removes SDK-message-to-AgentSignal mapper (file deleted). |
| src/vs/platform/agentHost/node/claude/claudeAgentSession.ts | Removes the per-session SDK Query owner implementation (file deleted). |
| src/vs/platform/agentHost/node/claude/claudeAgentSdkService.ts | Removes the lazy SDK wrapper service (file deleted). |
| src/vs/platform/agentHost/node/claude/claudeAgent.ts | Reverts Claude agent-host provider back to Phase 4 stubs and removes Phase 5/6 state. |
| src/vs/platform/agentHost/node/agentHostServerMain.ts | Removes DI registration for the removed Claude SDK service. |
| src/vs/platform/agentHost/node/agentHostMain.ts | Removes DI registration for the removed Claude SDK service. |
| src/vs/platform/agentHost/common/claudeSessionConfigKeys.ts | Removes Claude session config key definitions (file deleted). |
| remote/package.json | Removes @anthropic-ai/claude-agent-sdk from remote bundle dependencies. |
| package.json | Removes @anthropic-ai/claude-agent-sdk from root dependencies. |
| package-lock.json | Updates lockfile to reflect dependency removal and resulting graph changes. |
| eslint.config.js | Removes @anthropic-ai/claude-agent-sdk from agentHost import allowlist. |
Copilot's findings
Files not reviewed (1)
- remote/package-lock.json: Language not supported
- Files reviewed: 18/20 changed files
- Comments generated: 3
Comment on lines
249
to
+253
| this._proxyHandle?.dispose(); | ||
| this._proxyHandle = undefined; | ||
| this._githubToken = undefined; | ||
| this._models.set([], undefined); | ||
| super.dispose(); |
Comment on lines
41
to
54
| ```bash | ||
| ./src/vs/platform/agentHost/node/claude/scripts/launch-smoke.sh 9224 | ||
| ``` | ||
|
|
||
| This handles the `unset ELECTRON_RUN_AS_NODE`, `VSCODE_SKIP_PRELAUNCH=1`, | ||
| `--user-data-dir`, `--extensions-dir`, `--remote-debugging-port`, and the | ||
| "kill anything squatting on the port" steps. It exits zero once the CDP | ||
| port is listening. | ||
|
|
||
| ## 2. Verify the agent host wiring (no UI required) | ||
|
|
||
| ```bash | ||
| ./src/vs/platform/agentHost/node/claude/scripts/verify-claude-logs.sh [--phase=N] | ||
| ./src/vs/platform/agentHost/node/claude/scripts/verify-claude-logs.sh | ||
| ``` |
Comment on lines
+460
to
+462
| - [ ] **Gate verified disabled:** launch the Agents app *without* the env var (and with the setting off) and confirm only `CopilotAgent registered` appears in `agenthost.log` — no `ClaudeAgent registered`, no `'claude'` provider in root state. | ||
| - [ ] **Gate verified enabled:** re-launch via `launch-smoke.sh` (which sets `VSCODE_AGENT_HOST_ENABLE_CLAUDE=1`) and confirm both providers register. | ||
| - [ ] At least one `claude:/<uuid>` session URI appears in the IPC log after the user picks Claude (the session URI scheme is `claude:`, **not** `agent-host-claude:` — the longer form is the synced-customization namespace, observable separately). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reverts #314216