Skip to content

Revert "agentHost/claude: Phase 6 — sendMessage, single-turn, no tools" - #314358

Merged
Alexandru Dima (alexdima) merged 1 commit into
mainfrom
revert-314216-tyler/claude-phase6
May 5, 2026
Merged

Alexandru Dima (alexdima) merged 1 commit into
mainfrom
revert-314216-tyler/claude-phase6

Conversation

@alexdima

Copy link
Copy Markdown
Member

Reverts #314216

Copilot AI review requested due to automatic review settings May 5, 2026 10:38
@alexdima
Alexandru Dima (alexdima) merged commit 79d6cea into main May 5, 2026
26 checks passed
@alexdima
Alexandru Dima (alexdima) deleted the revert-314216-tyler/claude-phase6 branch May 5, 2026 10:39
@vs-code-engineering vs-code-engineering Bot added this to the 1.120.0 milestone May 5, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 ClaudeAgent session/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).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants