[FEATURE] Add /fork (conversation branching) support to VS Code extension
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
Summary
The CLI supports conversation forking via --fork-session (and /fork slash command), allowing users to branch a conversation at any point and explore a different direction while preserving the original session. This capability is not available in the VS Code extension — there is no slash command, hover action, command palette entry, or any other mechanism to fork a conversation.
Use case
When working on a complex task in the VS Code extension, I often reach a point where I want to explore an alternative approach without losing the current conversation context. Today the only option is to open a new chat (which starts fresh with no context) or switch to the terminal CLI to use --fork-session.
Conversation forking is particularly valuable for:
- Exploring alternative implementations — branch at a decision point, try both approaches
- Preserving working context — keep a "known good" conversation while experimenting
- A/B comparison — fork and compare Claude's output under different instructions
Expected behavior
/forkslash command available in the VS Code extension prompt box (alongside existing commands like/compact,/usage, etc.)- Forked session appears as a new tab, preserving full conversation history up to the fork point
- Parent session ID visible in the forked session (per #45655)
Current behavior
No fork/branch capability exists in the VS Code extension UI. The only workaround is opening a terminal and running claude --continue --fork-session.
Environment
- VS Code extension (macOS)
- CLI fork works correctly via
--fork-session
Related issues
- #45655 —
/forkshould display parent session ID (CLI) - #44684 —
--fork-sessionforks last-flushed JSONL, not live conversation (CLI)
Proposed Solution
Expected behavior
/forkslash command available in the VS Code extension prompt box (alongside existing commands like/compact,/usage, etc.)- Forked session appears as a new tab, preserving full conversation history up to the fork point
- Parent session ID visible in the forked session (per #45655)
Alternative Solutions
_No response_
Priority
Medium - Would be very helpful
Feature Category
Other
Use Case Example
This is the same scenario as the existing fork feature, simply supported in the VS Code extension. The justifications are identical.
Additional Context
_No response_
6 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
Do you mean something other than the convo forking that is already available in the vscode extension?
@JakeSays where is convo forking ?
Ah @clembo590 I actually found it out of the one of the other issues - if you hit escape twice then it brings up a menu to rewind /fork.
https://github.com/anthropics/claude-code/issues/8527
I looked around a bunch and didn't see documentation for this anywhere, so maybe a documentation improvement?
Closing for now — inactive for too long. Please open a new issue if this is still relevant.
+1 for not liking the current UX for editing prompts. The VS Code Github Copilot Chat Session UX is clearer and easier to use.