Skip to content

Claude Code sessions everywhere: import from claude.ai, continue on claude.ai or in the terminal (#431) - #433

Merged
aMonteSl merged 3 commits into
v1.3.0from
claude/project-thread-ywugl7
Dec 2, 2026
Merged

aMonteSl merged 3 commits into
v1.3.0from
claude/project-thread-ywugl7

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. VS Code extension side; the IDE side is a separate PR to ide.

What

  • Shared core src/core/claude-sessions/claudeSessionContinuity.ts (no vscode import, used by the IDE through @codexr/core): Remote Control prompt + reply parsing (adapter wording), claude.ai session link/id parsing, validated --teleport / --resume [--remote-control] arguments, consent text.
  • Plugin (AI Agents section)
    • New row Import a chat from claude.ai: paste the claude.ai/code link or id, confirm, and Code-XR runs claude --teleport <id> in a terminal in the workspace folder.
    • Claude Code session rows get a context menu: Continue on claude.ai (Remote Control) (modal consent, then claude --resume <id> --remote-control) and Continue in the Terminal (claude --resume <id>).
    • Three palette commands codeXR.claudeSessions.*.
  • Spike result in docs/agents/claude-session-continuity.md: claude-agent-acp (since 0.110) serves /remote-control itself over the Agent SDK, so the IDE can share its ACP chats directly; the CLI fallback is only for the extension, which does not host chats.

Tests

  • test/analysis/claudeSessionContinuity.test.cjs (new): prompts, reply parsing, link parsing (rejects non-claude.ai hosts and injected text), CLI arguments.
  • Guards updated: menu surface table, folder dependencies (core/claude-sessions), feature baseline and tree snapshot regenerated.
  • npm run typecheck, npm run lint (0 errors, 151 warnings = budget), npm run test:unit: 1433 pass, 0 fail.

Manual test

  1. AI Agents > Import a chat from claude.ai: paste a claude.ai/code session link of this repo; confirm; the terminal runs claude --teleport ....
  2. Right-click a Claude Code session row > Continue on claude.ai; confirm; open the URL the CLI prints on the phone or the web and send a message.
  3. Right-click > Continue in the Terminal resumes the chat.

Generated by Claude Code

@aMonteSl
aMonteSl merged commit 978a7e4 into v1.3.0 Dec 2, 2026
17 of 22 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