Unverified50% confidenceFactExact time
Claude Code locks the worktree while the agent is running and releases it when the agent finishes; locks left by killed sessions are only released on a subsequent scan.
1
Sources
50%
Confidence
Medium-term (~90 days)
Relevance
10/15/2026
First Seen
Valid until: 1/13/2027
Sources
Related Entities
Related Claims
UnverifiedClaude Code automatically removes a clean worktree when exiting an unnamed interactive session, while for named sessions it asks first.71% similarUnverifiedBefore Claude Code v2.1.301, if on exit a worktree created by the WorktreeCreate hook was detected to possibly contain unpushed commits it would be deleted directly; now it asks first before handling.68% similarUnverifiedWhen a hook crashes, times out, or the script is missing, Claude Code's default behavior is to let the tool call pass through directly (fail-open).64% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/1040275API
curl https://kongchang.com/api/v1/knowledge/claims/1040275MCP
get_claim(id=1040275)