Resuming an agent now validates its worktree branch and name before proceeding
When resuming an agent, Claude Code now computes and validates a worktreeBranch value (checking it's a string via a helper function) and a name value (checked against a naming pattern plus an exclusion list) from the resume options, alongside the existing handling of toolUseId and description.
This adds validation groundwork around resuming agents into a specific worktree (an isolated git working copy) and name, though the finding doesn't say what feature this validation will support.
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Returns the result from the subagent. The output is discriminated on the `status` field: `"completed"` for finished tasks, `"async_launched"` for background tasks, and `"remote_launched"` for tasks Claude Code dispatched to a cloud session…agent-sdk/python see the edit
what new resume feature this worktreeBranch/name validation is groundwork for
Anthropic's documentation has since written up worktreeBranch, on Agent SDK reference - Python.