Prompts and model names starting with a dash are no longer swallowed as options by subagents and background tasks.
What's wrong with this entry?
When Claude Code launches background tasks, subagents and routines, it now passes a value as a separate argument only if it does not start with - and does not look like a URL scheme; otherwise it joins them as --flag=value. This stops prompts, model names and schemas that begin with a dash from being swallowed as options.
- Applied to
--agent,--agents,--routine,--model,--effort,--append-system-promptand--json-schema. - The path that rewrites an agent name in an existing argument list was updated to handle both the split and joined forms.
--append-system-prompt
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
Related
Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.
-
v2.1.235
New error for delegating to a subagent without naming one
Both mention subagent
-
v2.1.236
New stop reason for parked subagents
Both mention subagent
-
v2.1.238
Groundwork for sparing some agents from a stop cascade
Both mention subagent