Skip to content

[docs] Add troubleshooting + cleanup script for stale bg-spare cwd after worktree removal (#61740)#61741

Open
giruuuuj wants to merge 2 commits into
anthropics:mainfrom
giruuuuj:fix/bg-spare-stale-cwd-61740
Open

[docs] Add troubleshooting + cleanup script for stale bg-spare cwd after worktree removal (#61740)#61741
giruuuuj wants to merge 2 commits into
anthropics:mainfrom
giruuuuj:fix/bg-spare-stale-cwd-61740

Conversation

@giruuuuj
Copy link
Copy Markdown

Summary

Adds a troubleshooting entry and a cleanup script (scripts/cleanup-stale-bg-spares.sh) for the bg-spare daemon not invalidating spares whose cwd has been deleted (e.g. after git worktree cleanup). Stale spares cause /clear errors, orphan ~/.claude/projects/ dirs, and unresolvable resume picker entries.

Closes #61740

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bg-spare daemon doesn't invalidate spares whose cwd is deleted, causing orphan session dirs and /clear errors

1 participant