Repository navigation
Commit eb1bf01
fix(web): batch thread delete no longer asks to delete Scratch folders (#1481)
## Problem
Deleting several threads at once asks "Delete the worktrees too?" and counts Scratch thread folders as worktrees.
Upstream's single-thread delete skips Scratch projects, so a Scratch folder is never a removable worktree, but the fork's batch confirmation from `f85dee500fe` predates Scratch projects and still counts them.
Nothing is deleted, because the per-thread step refuses Scratch folders; the prompt is wrong.
## Change
The batch collector applies upstream's `isScratchProject` exclusion beside its existing missing-project check, reading the environment config once per environment.
It stays inline and upstream-native, like the batch confirmation it fixes, so it drops alone with that commit.
## Scope and approval
Small fix of a fork bug exposed by the upstream Scratch projects feature in the 2525 sync.
Found by the independent review of that sync.
## Verification
- `vp run typecheck` in `apps/web` → exit 0
- `vp lint` on the touched files → no new findings
- `vp run fork:ci` → exit 0; one earlier run timed out in `scripts/install.test.ts`, unrelated, and passed on rerun
- Not checked in a real client: no test covers this hook-bound path, and the release UAT does not exercise Scratch batch deletes
🤖 claude-opus-5-5 via Claude Code in T3 Code
## Fork trailers
Fork-Domain: upstream-fixes
Fork-Tier: bugfix
Fork-Upstreamable: yes
Co-authored-by: donjor <[email protected]>1 parent 0de4eac commit eb1bf01
1 file changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
424 | | - | |
| 424 | + | |
425 | 425 | | |
426 | | - | |
| 426 | + | |
| 427 | + | |
427 | 428 | | |
428 | 429 | | |
429 | 430 | | |
430 | 431 | | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
431 | 439 | | |
432 | 440 | | |
433 | 441 | | |
434 | | - | |
| 442 | + | |
435 | 443 | | |
436 | 444 | | |
437 | 445 | | |
| |||
0 commit comments