Claude Code v2.1.221 ·
Background session names starting with "-" survive respawn
Background sessions renamed to something starting with a dash now restart correctly.
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
0Signal: worth watching, 1 to 5
SessionsArea: what it touches
Bug FixesKind: in v2.1.221,
Bug FixesSection of the release
What
Renaming a background session to a value beginning with a dash no longer produces argv that the respawned process parses as a flag.
Details
- The argv rewriter now emits
--name=<value> when the new value starts with a dash, instead of leaving the value as a separate argument. - Bundled short flags are collapsed when the rewrite happens, and nulled-out argv slots are compacted out of the result.
- Covers both
--name and -n.
Evidence
zpi(c.respawnFlags, "--name", "-n", c.name)
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
See this entry in the whole of v2.1.221 →