Same on desktop app 0.1.0 (81493efb71), macOS 14.8.8, Claude provider, so it is not Codex-specific. In 0.1.0 the turn fails with a visible error: "Provider session failed to open: This thread's workspace folder no longer exists or is not a directory: ~/.t3/worktrees/demo-repo/t3-e59cbb42. Restore the folder at this path before retrying."
Two UI findings on top of the server side:
- Once the app refreshes git status for the missing folder (an app restart does it, a window reload does not), the thread menu drops the branch picker, PR, commit and Changes rows and only offers "Initialize Git". That fails with "VCS process failed in GitVcsDriver.initRepository: git (
<path>) exited with 128", because the server runsgit -C <path> initand git exits 128 when the directory does not exist (apps/web/src/components/GitActionsControl.tsx:1709,apps/server/src/vcs/GitVcsDriver.ts:529atv0.1.0). - Before that refresh, the branch picker is still visible, and picking
mainthere recovers the thread: it moves to the project's local checkout and the next message runs. So a recovery path already exists. It is just hidden once git status reportsisRepo: falsefor the missing folder.
Keeping the branch picker for a thread whose worktree folder is gone, and not offering "Initialize Git" for a folder that does not exist, would give a way out even without the default-branch fallback suggested above.
Logs from 0.1.0:
| 1 | provider turn start recreating missing worktree |
| 2 | { threadId: "bd3fed77-...", worktreePath: "~/.t3/worktrees/demo-repo/t3-e59cbb42", branch: "t3/e59cbb42" } |
| 3 | provider turn start failed to recreate worktree |
| 4 | GitCommandError: Git command failed in GitVcsDriver.createWorktree (~/Documents/demo-repo): git worktree add failed |
After an app restart: the turn fails and the thread menu only offers "Initialize Git".
Clicking "Initialize Git":