Skip to content

[FEATURE] Add /fork (conversation branching) support to VS Code extension #46451

Description

@ahartzog

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • 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

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

Proposed Solution

Expected behavior

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions