Repository navigation
IDE: one Claude Code session everywhere (share on claude.ai, remote messages, continue in terminal, import from claude.ai) (#431) - #434
Merged
Conversation
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
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 sharesrc/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 offitself over the Agent SDK, answers with the session's claude.ai URL, and relays messages typed on claude.ai asuser_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
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.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.claude --teleport <id>; then Import chats ([Story] AF15: Import the chats I already have with my agent #298) adds it.remoteControlon the chat state, newremote-controlevent) 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 testin apps/ide: 1196 pass, 0 fail (typecheck, lint at 0 warnings).core/claude-sessionsas reachable only from the IDE on this branch (the extension reaches it onv1.3.0).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