Skip to content

IDE: one Claude Code session everywhere (share on claude.ai, remote messages, continue in terminal, import from claude.ai) (#431) - #434

Merged
aMonteSl merged 3 commits into
idefrom
claude/project-thread-ywugl7-ide
Dec 2, 2026
Merged

aMonteSl merged 3 commits into
idefrom
claude/project-thread-ywugl7-ide

Conversation

@aMonteSl

@aMonteSl aMonteSl commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator

Requested by Adrián · project thread

Part of #431 (epic #189): one Claude Code session everywhere. IDE side; the extension side is #433 (to v1.3.0). Both share src/core/claude-sessions/claudeSessionContinuity.ts (same commit on both branches).

Spike result

claude-agent-acp (0.110 and later, checked on 0.114.0) serves /remote-control [name] and /remote-control off itself over the Agent SDK, answers with the session's claude.ai URL, and relays messages typed on claude.ai as user_message_chunk. So an IDE chat is shared directly on its ACP session: no CLI fallback is needed in the IDE. Details: docs/agents/claude-session-continuity.md.

What

  • Share on claude.ai / Stop sharing in the chat header, shown when the agent lists remote-control. Turning it on asks first in a native dialog (the only network-facing step of a chat). While shared, an On claude.ai badge copies the link.
  • Messages typed on claude.ai or the mobile app appear in the chat as the person's, marked From claude.ai, followed by Claude's answer; Agent Flow gets them through the same events.
  • Continue in terminal: lets go of the chat's agent and runs claude --resume <id> (the adapter's own CLI, --cli) in a terminal of the panel, so one process writes the session; the next message in the IDE reloads it.
  • Import from claude.ai in Claude Code's agent setup: paste the claude.ai/code link, confirm natively, a terminal runs claude --teleport <id>; then Import chats ([Story] AF15: Import the chats I already have with my agent #298) adds it.
  • Remote Control state (remoteControl on the chat state, new remote-control event) is kept by main from the agent's commands, its answer and the start-up notice; never read back as active from disk.

Tests

  • apps/ide/test/agentSessions.test.ts: 4 new cases with the fake ACP agent (consent declined sends nothing, on/off with URL, remote message marked and no local turn, link/agent validation for teleport, store never restores an active share).
  • npm test in apps/ide: 1196 pass, 0 fail (typecheck, lint at 0 warnings).
  • Extension gate: 1445 pass; the guardrail baseline records core/claude-sessions as reachable only from the IDE on this branch (the extension reaches it on v1.3.0).
  • Not run here: ide:smoke (no Electron binary in this container), CI runs it.

Manual test

See "Manual test" in docs/agents/claude-session-continuity.md (needs a claude.ai sign-in).


Generated by Claude Code

@aMonteSl aMonteSl self-assigned this Dec 2, 2026
@aMonteSl
aMonteSl merged commit 77835c3 into ide Dec 2, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants