Skip to content

🐛 Repo Watch: drop stale/unreadable worktrees (kill SCAN ERR)#210

Merged
arach merged 1 commit into
mainfrom
fix/repo-watch-skip-stale
Jun 6, 2026
Merged

🐛 Repo Watch: drop stale/unreadable worktrees (kill SCAN ERR)#210
arach merged 1 commit into
mainfrom
fix/repo-watch-skip-stale

Conversation

@arach
Copy link
Copy Markdown
Owner

@arach arach commented Jun 6, 2026

Repo Watch was showing SCAN ERR rows for worktrees in ephemeral paths (/tmp, ~/Library/Caches/codex-builds) whose directories had been deleted — git worktree list still registers them, the scan hits "Could not read Git status", and the bogus error even bumped the parent project to an attention state.

Fix: skip worktrees the scan can't read, and drop projects left with zero readable worktrees. An unreadable worktree carries no signal, so nothing useful is lost.

Verified: with the same discovery hints that previously produced 3 SCAN ERR rows, the snapshot now returns 0 errored worktrees (and action drops from attention → active). Typecheck clean; repo-watch tests 6/6.

`git worktree list` keeps registrations for worktrees in ephemeral locations
(/tmp, ~/Library/Caches/codex-builds) long after their directories are deleted.
Scanning them failed with "Could not read Git status", surfacing as SCAN ERR
rows that also pushed their project to an "attention" state — pure noise.

Now skip any worktree the scan can't read, and drop projects left with no
readable worktrees. No signal lost (an unreadable worktree carries none).
@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
openscout Skipped Skipped Jun 6, 2026 10:36pm

@arach arach merged commit 86c0f85 into main Jun 6, 2026
3 checks passed
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.

1 participant