mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
Addresses #15992 The app-server TUI was treating tracked agent threads as closed based on listener-task bookkeeping that does not reflect live thread state during normal thread switching. That caused the `/agent` picker to gray out live agents and could show a false "Agent thread ... is closed" replay message after switching branches. This PR fixes the picker refresh path to query the app server for each tracked thread and derive closed vs loaded state from `thread/read` status, while preserving cached agent metadata for replay-only threads.