Wrong TUI leaks into session
OpenAI Developer Community
May 26, 2026
I am not OpenAI staff, but this sounds like a state/routing bug between active Codex CLI sessions rather than a task failure.
A few details would make it easier to reproduce: Codex CLI version, terminal app, OS, whether both sessions were started from the same repo/worktree, and whether the error appears after resuming a thread or while both sessions are live.
A minimal repro would be especially useful: start session A, start session B, leave both running, then note which keypress/action causes prompts from B to appear in A. Since you said the background tasks keep running, I would include that too, because it separates UI/session routing from agent execution.
For now, I would avoid running multiple TUI sessions in the same terminal/tmux context and use separate terminal windows or worktrees when possible.
Discussion in the ATmosphere