You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Removing a git worktree on a codex session that is currently being worked on crashes the terminal ungracefully. #15926
What terminal emulator and version are you using (if applicable)?
zsh
What issue are you seeing?
I was working on a Git work tree and I removed it in another session, when I tried to re-prompt in that chat that was on the remove.git worktree, I got this Rust error, which made it such that the terminal was no longer responsive. This should ideally have a more graceful error message.
What steps can reproduce the bug?
Create a Git worktree on a repository.
Open a Codex session on that Git worktree.
From another terminal, close the Git worktree and try to re-prompt the chat in the now-closed Git worktree.
Closing as covered by #41559, which tracks sessions that cannot recover once their running cwd is deleted or replaced. This older report adds a macOS case where another terminal removes the git worktree before the next prompt; please keep that external-deletion case in scope there. This is consolidation, not a claim of a fix.
Activity
etraut-openai commentedon Oct 12, 2026
(response from codex)
Closing as covered by #41559, which tracks sessions that cannot recover once their running cwd is deleted or replaced. This older report adds a macOS case where another terminal removes the git worktree before the next prompt; please keep that external-deletion case in scope there. This is consolidation, not a claim of a fix.