/branch command outputs incorrect resume command — missing --resume flag

Resolved 💬 2 comments Opened Mar 26, 2026 by Horacehxw Closed Apr 25, 2026

Bug Description

The /branch command outputs a resume command that doesn't work:

Branched conversation. You are now in the branch.
To resume the original: claude -r 117e1b95-ba8f-4e41-a7e4-58422f516035

But running it produces an error:

$ claude -r 117e1b95-ba8f-4e41-a7e4-58422f516035
Error: --session-id can only be used with --continue or --resume if --fork-session is also specified.

Expected Behavior

The output should include --resume (or --continue) flag, e.g.:

To resume the original: claude --resume -r 117e1b95-ba8f-4e41-a7e4-58422f516035

Or:

To resume the original: claude --continue 117e1b95-ba8f-4e41-a7e4-58422f516035

Steps to Reproduce

  1. Start a Claude Code session
  2. Run /branch
  3. Copy the "To resume the original" command from the output
  4. Run it in terminal
  5. Get error: --session-id can only be used with --continue or --resume if --fork-session is also specified.

Environment

  • Claude Code: 2.1.84
  • Platform: macOS Darwin 25.3.0
  • Shell: zsh

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗