You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
Cloud SessionsArea: what it touches
ImprovementsKind: in v2.1.327,
ImprovementsSection of the release
Unclear Which kinds of session turn this cleanup on is not stated.
What
When git is cut short, it can leave lock files (files ending in .lock) behind, and later git commands then refuse to run. When the option is turned on, Claude Code now scans the repository's .git folder, including its refs, logs, worktrees and reftable folders, before setting up the repository, and deletes any such leftover lock files. Each removal is logged with the message "Removed stale ... left by a git that was cut short".
Why
Cloud or remote sessions that used to fail because of leftover lock files can now recover on their own.
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtWhich kinds of session turn this cleanup on is not stated.