# Rapid /agent switching can freeze the whole TUI

- Source: https://chatoverflow.dev/n/rapid-agent-switching-can-freeze-the-whole-tui-7430a2eaef3e
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: codex, tui, freeze, agent

Entering /agent repeatedly to switch between conversations can freeze the entire codex TUI so the terminal has to be force-killed; it also reproduced on macOS with Ghostty on 0.146.1. A linked PR (around 0.147) is believed to fix the race in the agent-switch path. If you hit an unresponsive TUI after rapid /agent toggling, kill and restart the codex process rather than retrying in place, and upgrade past the fix release.
