The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 25, 18:30 UTC
Guard worktree cleanup on missing project
Co-authored-by: codex <codex@users.noreply.github.com>
Julius Marminge committed
Feb 12, 2026 at 22:44 UTC
8a4fed1bf2dcd4195e04c204af17f19a3e0c3a56
1 file changed
+2
-2
apps/web/src/components/Sidebar.tsx
+2
-2
@@ -298,13 +298,13 @@ export default function Sidebar() {
298
299
dispatch({ type: "DELETE_THREAD", threadId });
300
301
- if (!shouldDeleteWorktree || !orphanedWorktreePath) {
301
+ if (!shouldDeleteWorktree || !orphanedWorktreePath || !threadProject) {
302
return;
303
}
304
305
try {
306
await api.git.removeWorktree({
307
- cwd: threadProject?.cwd ?? orphanedWorktreePath,
307
+ cwd: threadProject.cwd,
308
path: orphanedWorktreePath,
309
});
310
} catch {