Repository navigation
Commit bd9c32b
fix(web): stop pre-seeding the sidebar delete batch as already-deleted
`deletedThreadKeys` was seeded with every selected thread before the loop
ran, so the first delete saw all its batch mates as gone and removed a
worktree they still pointed at. Now that a failure no longer aborts the
batch, a thread that fails to delete would keep a live reference to a
worktree the loop already removed.
Grow the set as deletions land, matching SidebarV2, and deselect only the
threads that actually deleted.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>1 parent 2fb0ffc commit bd9c32b
1 file changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1838 | 1838 | | |
1839 | 1839 | | |
1840 | 1840 | | |
1841 | | - | |
1842 | | - | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
1843 | 1846 | | |
1844 | 1847 | | |
1845 | 1848 | | |
| |||
1851 | 1854 | | |
1852 | 1855 | | |
1853 | 1856 | | |
1854 | | - | |
| 1857 | + | |
1855 | 1858 | | |
1856 | 1859 | | |
1857 | 1860 | | |
| |||
1862 | 1865 | | |
1863 | 1866 | | |
1864 | 1867 | | |
1865 | | - | |
| 1868 | + | |
1866 | 1869 | | |
1867 | 1870 | | |
1868 | 1871 | | |
| |||
0 commit comments