claude-code - 💡(How to fix) Fix Fork Conversation opens empty session (resume: undefined) in VS Code extension v2.1.157

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Root Cause

Root Cause (from extension logs)

Code Example

Spawning Claude with SDK query function - cwd: ..., resume: undefined
RAW_BUFFERClick to expand / collapse

Environment

  • Extension version: 2.1.157 (darwin-arm64)
  • VS Code: latest
  • Platform: macOS (Darwin 25.5.0, Apple Silicon)

Bug

"Fork Conversation from here" opens a new tab but the conversation is empty — no history from the fork point is carried over. The new session starts fresh.

Reproduction

  1. Have any conversation with at least a few messages
  2. Hover over a message and click "Fork Conversation from here"
  3. New tab opens but shows an empty conversation (no forked history)

Reproducible 100% of the time across different conversations and different fork points.

Root Cause (from extension logs)

The fork correctly:

  • Hard-links file history/checkpoints from the source session to the new session
  • Opens a new tab via new_conversation_tab with the correct sessionId

But the spawned Claude process starts with resume: undefined:

Spawning Claude with SDK query function - cwd: ..., resume: undefined

The resumeSessionAt message ID from the fork_conversation request is not being passed through to the new process.

Expected

The forked session should resume from the specified resumeSessionAt message, preserving conversation history up to that point.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Fork Conversation opens empty session (resume: undefined) in VS Code extension v2.1.157