Skip to content

A14 Continue a Claude Code chat across claude.ai, Claude Desktop, the IDE and the plugin #431

Backlog

Description

@aMonteSl

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: ACP session/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/)

  1. A claudeSessions module in packages/ 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.
  2. Spike first: test whether remoteControlAtStartup: true (or an equivalent option) makes a claude-agent-acp session appear in claude.ai/code. The result decides AC 6 (direct) or AC 7 (fallback) and is recorded in docs/.

Web -> Code-XR

  1. "Import from Claude Code on the web": the user pastes a session id or link (or picks from claude --teleport picker in the integrated terminal); Code-XR runs claude --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).
  2. 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

  1. A chat has "Continue elsewhere" with: "Open in terminal" (claude --resume <id>), and "Share to claude.ai (Remote Control)".
  2. (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.
  3. (Fallback) Code-XR closes its ACP connection to that chat and opens claude --resume <id> --remote-control in the integrated terminal, so there is never more than one writer on the transcript; when that process ends, the chat is reloaded with session/load and shows the turns made from the web/mobile.
  4. 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

  1. IDE: entries in the chat tab menu and the sessions sidebar.
  2. 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).
  3. 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)

  1. 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).
  2. While shared, the chat header shows that the session is reachable remotely and its link; turning it off disconnects it.
  3. 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).
  4. 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

Activity

  1. added
    tfm
    user-story
    area: ide
    area: extension
    on Dec 2, 2026
  2. added 3 commits that reference this issue on Dec 2, 2026
  3. aMonteSl commented on Dec 2, 2026

    @aMonteSl
    CollaboratorAuthor

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: ai-agentsarea: extensionarea: idestream: ai-agentstfmuser-story

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions