claude-code - 💡(How to fix) Fix [BUG] `claude respawn --all` advertised in --help but rejected as "unknown option" (v2.1.150)

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…

claude respawn --all is documented at https://code.claude.com/docs/en/agent-view and advertised by --help, but the argument parser in v2.1.150 rejects the flag, so there's no way to restart every background session at once.

Error Message

$ claude --version 2.1.150 (Claude Code)

$ claude respawn --help Usage: claude respawn <id>|--all

Restart a background session (or all of them) so it picks up the current Claude binary.

$ claude respawn --all error: unknown option '--all' $ echo $? 1

$ /Applications/cmux.app/Contents/Resources/bin/claude respawn --all error: unknown option '--all'

$ claude respawn -- --all # try escaping past option parser

falls through to interactive chat, exit 0 — also wrong

Root Cause

claude respawn --all is documented at https://code.claude.com/docs/en/agent-view and advertised by --help, but the argument parser in v2.1.150 rejects the flag, so there's no way to restart every background session at once.

Fix Action

Workaround

claude agents --json | jq -r '.[].sessionId' | xargs -I{} claude respawn {}

Code Example

$ claude --version
2.1.150 (Claude Code)

$ claude respawn --help
Usage: claude respawn <id>|--all

  Restart a background session (or all of them) so it picks up the current
  Claude binary.

$ claude respawn --all
error: unknown option '--all'
$ echo $?
1

$ /Applications/cmux.app/Contents/Resources/bin/claude respawn --all
error: unknown option '--all'

$ claude respawn -- --all     # try escaping past option parser
# falls through to interactive chat, exit 0 — also wrong

---

claude agents --json | jq -r '.[].sessionId' | xargs -I{} claude respawn {}
RAW_BUFFERClick to expand / collapse

Summary

claude respawn --all is documented at https://code.claude.com/docs/en/agent-view and advertised by --help, but the argument parser in v2.1.150 rejects the flag, so there's no way to restart every background session at once.

Environment

  • Claude Code: 2.1.150 (Claude Code)
  • OS: macOS (Darwin 24.6.0, arm64)
  • Binary: /Applications/cmux.app/Contents/Resources/bin/claude (cmux-bundled), same behavior via direct path and through the cmux zsh wrapper

Reproduction

$ claude --version
2.1.150 (Claude Code)

$ claude respawn --help
Usage: claude respawn <id>|--all

  Restart a background session (or all of them) so it picks up the current
  Claude binary.

$ claude respawn --all
error: unknown option '--all'
$ echo $?
1

$ /Applications/cmux.app/Contents/Resources/bin/claude respawn --all
error: unknown option '--all'

$ claude respawn -- --all     # try escaping past option parser
# falls through to interactive chat, exit 0 — also wrong

Expected

Per the agent-view docs:

claude respawn --all — Restart every running session, e.g. to move all sessions onto an updated Claude Code binary at once

…the command should iterate over every session in the supervisor's roster and respawn each.

Actual

  • The flag is not registered with the command parser.
  • --help text still advertises the <id>|--all form.
  • No release between v2.1.140 and v2.1.150 mentions adding --all to respawn in the changelog, suggesting the help string shipped ahead of the parser registration.

Workaround

claude agents --json | jq -r '.[].sessionId' | xargs -I{} claude respawn {}

Related but distinct

  • #59806 — respawn returns exit 0 but session stays stuck (different bug)
  • #58943 — --mcp-config/--settings lost across /bg → respawn (closed)
  • #61230 — agent view missing respawn action on Bedrock (different surface)

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