{"version":"2.1.334","anchor":"agent-resume-validates-worktree-ownership-on-remote-tools-ho","canonical_anchor":"agent-resume-validates-worktree-ownership-on-remote-tools-ho","heading":"Resuming an agent on a remote host can now be refused if its worktree is lost","tier":"notice","area":"Subagents","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334\/e\/agent-resume-validates-worktree-ownership-on-remote-tools-ho","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334","markdown":"### Resuming an agent on a remote host can now be refused if its worktree is lost\n\nWhen an agent ran on a remote tools host, resuming it now checks its worktree belongs to it and fails with an error if not\n\n**What**\n\nA subagent is a separate helper that Claude Code starts to work on part of a task. Some subagents work in a worktree, a separate working copy of your repository. When the tools the agent uses run on a remote machine, resuming that agent now works differently:\n\n- Claude Code checks that the worktree's path matches the agent. If it does not, resuming stops with: \"Cannot resume this agent: this worker no longer knows which worktree on the tools host it ran in. Start a new agent instead.\"\n\n- If the agent inherited its worktree from the agent that started it, Claude Code follows that chain back to check it.\n\n- If the agent's transcript, the record of its conversation, was cut short, Claude Code fetches it again once.\n\nBefore, Claude Code only checked whether the worktree path existed, and otherwise asked again or used a fallback folder.\n\n**Why**\n\nResuming an agent in a remote session can now be refused where it used to go ahead. If you see this message, start a new agent.\n\n- Area: Subagents\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: yes"}