Repository navigation
Commit 2ae1676
committed
fix(server): turns recreate a worktree folder that lost its checkout
A failed removal can leave a thread's managed worktree folder behind with no
.git link. Turn start only checked that the folder existed, so the agent ran
outside any checkout and git commands reached the repository around it.
Turn start now checks for the folder's .git, clears the leftover folder, and
recreates the checkout. Storage cleanup keeps such a folder as "not a linked
worktree" instead of failing the sweep on the missing .git.
Fixes #24390
AI-assisted; verified with the tests and tools listed above.1 parent 60430b7 commit 2ae1676
3 files changed
Lines changed: 8 additions & 3 deletions
File tree
- apps/server/src
- orchestration-v2
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
144 | 145 | | |
145 | 146 | | |
146 | 147 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
| 222 | + | |
222 | 223 | | |
223 | 224 | | |
224 | 225 | | |
| |||
651 | 652 | | |
652 | 653 | | |
653 | 654 | | |
| 655 | + | |
654 | 656 | | |
655 | | - | |
| 657 | + | |
656 | 658 | | |
657 | 659 | | |
658 | 660 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
944 | 944 | | |
945 | 945 | | |
946 | 946 | | |
947 | | - | |
948 | | - | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
949 | 951 | | |
950 | 952 | | |
951 | 953 | | |
| |||
0 commit comments