claude-code - 💡(How to fix) Fix [DOCS] `/branch` session docs omit the branched session ID usable with `/resume` [1 participants]

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…
GitHub stats
anthropics/claude-code#56498Fetched 2026-05-06 06:26:27
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Author
Participants
Timeline (top)
labeled ×3
RAW_BUFFERClick to expand / collapse

Documentation Type

Incorrect/outdated documentation

Documentation Location

https://code.claude.com/docs/en/sessions

Section/Topic

Branch a session

Current Documentation

The sessions guide currently says:

The original session is unchanged and remains available in the session picker. The /branch confirmation prints the original session's ID; to return to it, use that ID, the session picker, or /resume <original-name>. Permissions you approved with "allow for this session" do not carry over to the new branch. If you resume the same session in two terminals without forking, messages from both interleave into one transcript.

Related session guidance also says:

Resuming a session with claude --continue or claude --resume reopens it under the same session ID and appends new messages to the existing conversation. Forking with --fork-session or /branch copies the history into a new session ID, leaving the original unchanged.

What's Wrong or Missing?

For the v2.1.129 /branch fix about the success message including the new branch's session ID for /resume, the current docs still only describe the original session's ID.

That leaves the /branch docs incomplete in two ways:

A. The new branched session ID is not documented in the /branch workflow

The page explains how to get back to the original session, but not that the branched conversation has its own new session ID that can be used later with /resume.

B. The /branch confirmation behavior is described from the old perspective

The current wording says the confirmation prints the original session's ID, which does not explain the newer success-message behavior added for the branched session's /resume path.

Suggested Improvement

Update the Branch a session section to explicitly document the new branch session ID and how it relates to /resume.

For example, after the /branch example, add guidance like:

/branch creates a new session ID for the forked conversation. The success message includes that new session ID so you can later reopen the branched conversation with /resume or claude --resume <session-id>. The original session remains unchanged and can still be reopened separately.

If the success message now shows both the original and new session identifiers, call out which one resumes the original thread versus the branched thread.

Impact

Medium - Makes feature difficult to understand

Additional Context

Affected Pages:

PageLine(s)Context
https://code.claude.com/docs/en/sessions80-96/branch section says the confirmation prints the original session's ID
https://code.claude.com/docs/en/how-claude-code-works109-111Session overview says /branch creates a new session ID, but does not connect that new ID to /resume

Total scope: 2 pages affected

This gap appears when cross-referencing the current session docs with the v2.1.129 changelog entry about /branch success messaging for /resume.

extent analysis

TL;DR

Update the /branch section in the sessions guide to include the new branch session ID and its relation to /resume.

Guidance

  • Review the current documentation for the /branch section and identify areas where the new branch session ID is not mentioned.
  • Update the documentation to explicitly state that /branch creates a new session ID for the forked conversation and that this ID can be used with /resume to reopen the branched conversation.
  • Ensure that the documentation clearly distinguishes between the original session ID and the new branch session ID, including how to use each with /resume.
  • Verify that the updated documentation is consistent across all affected pages, including the sessions guide and the session overview.

Example

> `/branch` creates a new session ID for the forked conversation. The success message includes that new session ID so you can later reopen the branched conversation with `/resume` or `claude --resume <session-id>`. The original session remains unchanged and can still be reopened separately.

Notes

The update should be applied to the two affected pages: https://code.claude.com/docs/en/sessions and https://code.claude.com/docs/en/how-claude-code-works.

Recommendation

Apply workaround: Update the documentation to reflect the correct behavior of /branch and its relation to /resume, as this will improve the understanding and usability of the feature.

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