Repository navigation
Backlog
Labels
area: ai-agentsarea: extensionVS Code extension host (TypeScript): commands, launcher, servers, servicesarea: ideThe Electron + Monaco IDE (apps/ide)stream: ai-agentstfmAdds the issue to the TFM board automatically. Do not removeuser-storySub-issue of an epic ([Story] title prefix)
Description
As a developer who uses Claude Code from several places (claude.ai/code, the Claude app, Claude Desktop, the terminal),
I want to bring a Claude Code chat into Code-XR (IDE and VS Code plugin) and hand a Code-XR chat back to the web or my phone,
so that I keep one single conversation, with Claude Code as its source of truth, and see its effect on the live Code-XR analysis wherever I continue it.
Context
- Code-XR chats are local Claude Code sessions (via
claude-agent-acp), stored in~/.claude/projects/<cwd>/<id>.jsonl. The IDE already imports them ([Story] AF15: Import the chats I already have with my agent #298: ACPsession/list+session/load). - Official mechanisms:
claude --teleport <id>(cloud session -> local, copies transcript and fetches the branch) and Remote Control (claude --remote-control//rc/remoteControlAtStartup: a local session shown and driven from claude.ai/code and the mobile app). - Remote Control requires a claude.ai login (Pro/Max/Team/Enterprise), not an API key; it is documented for the CLI, Desktop and VS Code, NOT for Agent SDK / ACP processes.
Acceptance criteria
Shared (packages/)
- A
claudeSessionsmodule inpackages/lists Claude Code sessions of a folder, resolves a session id, and builds the teleport / resume / remote-control commands; both hosts use it, no duplicated logic. - Spike first: test whether
remoteControlAtStartup: true(or an equivalent option) makes aclaude-agent-acpsession appear in claude.ai/code. The result decides AC 6 (direct) or AC 7 (fallback) and is recorded indocs/.
Web -> Code-XR
- "Import from Claude Code on the web": the user pastes a session id or link (or picks from
claude --teleportpicker in the integrated terminal); Code-XR runsclaude --teleport <id>in the open folder, then the chat appears in the chat list via the existing import ([Story] AF15: Import the chats I already have with my agent #298). - If teleport preconditions fail (dirty git tree, branch not pushed, different repo, API-key login) the user sees the exact reason and how to fix it; nothing is modified.
Code-XR -> web / mobile / Desktop
- A chat has "Continue elsewhere" with: "Open in terminal" (
claude --resume <id>), and "Share to claude.ai (Remote Control)". - (If the spike passes) Remote Control is enabled on the ACP session itself; the chat shows a "Live on claude.ai" badge with its link.
- (Fallback) Code-XR closes its ACP connection to that chat and opens
claude --resume <id> --remote-controlin the integrated terminal, so there is never more than one writer on the transcript; when that process ends, the chat is reloaded withsession/loadand shows the turns made from the web/mobile. - Turns made from the web/mobile while the chat is shared still drive the live scene and Agent Flow (the transcript watcher already reads the JSONL).
Hosts
- IDE: entries in the chat tab menu and the sessions sidebar.
- VS Code plugin: same commands in the AI agents tree view and the command palette (
Code-XR: Import Claude Code chat from the web,Code-XR: Continue chat on claude.ai). - If the user is not signed in with a claude.ai account, the Remote Control/teleport actions are disabled with an explanation (API keys are not supported).
Also from #432 (AF14, same goal)
- Sharing is off by default, per chat, and the action states that it makes the session reachable from claude.ai (the only network-facing part of the chat).
- While shared, the chat header shows that the session is reachable remotely and its link; turning it off disconnects it.
- Messages written from claude.ai or the mobile app appear in the Code-XR chat and in Agent Flow like local turns, with no duplicate entry (Agent Flow identity = Claude Code session id, Agent Flow: list an IDE chat once, not also as its Claude Code transcript (#326, ide) #429 / Agent Flow: a live source hides the transcript of its own agent session (#326) #430).
- Tests with a fake agent; manual test steps in the agent-first test guide.
Out of scope
- Syncing to Claude Desktop's own session list (Desktop keeps a separate list; it can resume CLI sessions itself).
- Running two clients on the same chat at the same time without Remote Control.
Generated by Claude Code
Metadata
Metadata
Assignees
Labels
area: ai-agentsarea: extensionVS Code extension host (TypeScript): commands, launcher, servers, servicesarea: ideThe Electron + Monaco IDE (apps/ide)stream: ai-agentstfmAdds the issue to the TFM board automatically. Do not removeuser-storySub-issue of an epic ([Story] title prefix)
Activity
docs: manual test for Claude Code session continuity (#431)
Merge pull request #434 from Code-XR-Project/claude/project-thread-yw…
Merge pull request #433 from Code-XR-Project/claude/project-thread-yw…
aMonteSl commentedon Dec 2, 2026
Implemented in #433 (
v1.3.0, VS Code extension) and #434 (ide), both merged on 2 December 2026. Spike result and manual test:docs/agents/claude-session-continuity.md.On #433, the macOS jobs were cancelled because GitHub had no macOS runner available. The same code passed on macOS in #434.
This issue stays open until the manual test passes.
Generated by Claude Code