Forked session resume command doesn't work: -r flag parsed incorrectly

Resolved 💬 3 comments Opened Mar 20, 2026 by chencheng-li Closed Mar 24, 2026

Description

After forking a session, the CLI outputs a session ID suggesting you can resume it. However, the suggested command doesn't work as expected.

Steps to reproduce

  1. Fork a session (resulting in a new session ID, e.g. fd23c3a2-ef4b-422c-b04c-c85af7d2ead6)
  2. Try to resume it with -r:

``
claude -r fd23c3a2-ef4b-422c-b04c-c85af7d2ead6
``

  1. Get error:

``
Error: --session-id can only be used with --continue or --resume if --fork-session is also specified.
``

  1. Try with --resume:

``
claude --resume fd23c3a2-ef4b-422c-b04c-c85af7d2ead6
``
This launches but the forked session doesn't resume meaningfully.

Expected behavior

The resume command suggested after forking should work and restore the forked session context.

Environment

  • Claude Code v2.1.79
  • macOS

View original on GitHub ↗

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