Environment: Linux x86_64, web dev app, Codex CLI 0.163.0, GPT-6.1-Sol App commit: 70e5e384da Server: vp run dev in /home/ubuntu/wt/issue-19124; isolated .t3; web port 7117, server port 15157 Fixture: git init -b main /tmp/issue-19124-repo; empty initial commit Browser: UI Add project /tmp/issue-19124-repo, New worktree, Codex GPT-6.1-Sol 1. Send 'Reply exactly READY. Do not use tools or modify files.' => READY Managed path: /home/ubuntu/wt/issue-19124/.t3/worktrees/issue-19124-repo/t3-0223e59a Branch auto-renamed to t3/reply-ready 2. git -C commit --allow-empty -m 'Fixture completed work' git -C /tmp/issue-19124-repo merge --ff-only t3/reply-ready git -C /tmp/issue-19124-repo worktree remove git -C /tmp/issue-19124-repo branch -d t3/reply-ready 3. Send 'Reply exactly AFTER_CLEANUP. Do not use tools or modify files.' => Failed UI: Provider session failed to open This thread's workspace folder no longer exists or is not a directory: . Restore the folder at this path before retrying. 4. Send 'Reply exactly RETRY. Do not use tools or modify files.' => same failure 5. git -C /tmp/issue-19124-repo branch t3/reply-ready main (Do not restore directory manually.) 6. Send 'Reply exactly RESTORED_BRANCH. Do not use tools or modify files.' => RESTORED_BRANCH Server automatically recreates the managed worktree when branch exists. Relevant server log excerpts: [22:32:05.752] WARN (#9827): provider turn start recreating missing worktree { threadId: '471e598c-a768-4b3b-b169-e181fe837128', worktreePath: '/home/ubuntu/wt/issue-19124/.t3/worktrees/issue-19124-repo/t3-0223e59a', branch: 't3/reply-ready' } [22:32:05.882] WARN (#9827): provider turn start failed to recreate worktree { threadId: '471e598c-a768-4b3b-b169-e181fe837128', worktreePath: '/home/ubuntu/wt/issue-19124/.t3/worktrees/issue-19124-repo/t3-0223e59a', cause: 'GitCommandError: Git command failed in GitVcsDriver.createWorktree (/tmp/issue-19124-repo): git worktree add failed (ref_not_found)\n' + ' at file:///home/ubuntu/wt/issue-19124/apps/server/src/vcs/GitVcsDriverCore.ts:1147:11\n' + [22:32:06.012] WARN (#9912): provider turn start recreating missing worktree { threadId: '471e598c-a768-4b3b-b169-e181fe837128', worktreePath: '/home/ubuntu/wt/issue-19124/.t3/worktrees/issue-19124-repo/t3-0223e59a', branch: 't3/reply-ready' } [22:32:06.109] WARN (#9912): provider turn start failed to recreate worktree { threadId: '471e598c-a768-4b3b-b169-e181fe837128', worktreePath: '/home/ubuntu/wt/issue-19124/.t3/worktrees/issue-19124-repo/t3-0223e59a', cause: 'GitCommandError: Git command failed in GitVcsDriver.createWorktree (/tmp/issue-19124-repo): git worktree add failed (ref_not_found)\n' + ' at file:///home/ubuntu/wt/issue-19124/apps/server/src/vcs/GitVcsDriverCore.ts:1147:11\n' + [22:32:06.327] WARN (#9977): provider turn start recreating missing worktree { threadId: '471e598c-a768-4b3b-b169-e181fe837128', worktreePath: '/home/ubuntu/wt/issue-19124/.t3/worktrees/issue-19124-repo/t3-0223e59a', branch: 't3/reply-ready' } [22:32:06.450] WARN (#9977): provider turn start failed to recreate worktree { threadId: '471e598c-a768-4b3b-b169-e181fe837128', worktreePath: '/home/ubuntu/wt/issue-19124/.t3/worktrees/issue-19124-repo/t3-0223e59a', cause: 'GitCommandError: Git command failed in GitVcsDriver.createWorktree (/tmp/issue-19124-repo): git worktree add failed (ref_not_found)\n' + ' at file:///home/ubuntu/wt/issue-19124/apps/server/src/vcs/GitVcsDriverCore.ts:1147:11\n' +