The Wire · Showcase
CODEX UNTANGLES CHATWIDGET STATE, FIXES TUI FREEZES ON AGENT METADATA STORMS
By RepoJournal · Filed · About OpenAI
ChatWidget's state bag has been decomposed into focused modules [ref:1], and the TUI no longer blocks on metadata hydration during large agent fan-outs [ref:2].
The ChatWidget refactor [1] is the first wave of a larger decomposition effort—transcript bookkeeping, turn lifecycle, queued input, and protocol dispatch were all tangled together in one file, making unrelated changes hard to reason about. That cleanup lands alongside a critical TUI fix [2] that was causing the UI to freeze during subagent spawns: the embedded app-server was getting hammered with metadata read requests that queued behind agent work. By replacing eager `thread/read` calls with lazy hydration, the event loop stays responsive even when the agent layer is swamped. On the UX side, hooks trust flow [3] now prompts users for review at startup instead of making them discover `/hooks` manually, and a single `t` shortcut trusts all pending hooks at once. The TUI also gained proper light-mode support [4]—selected rows on light backgrounds now use contrast-aware styling instead of bright cyan that vanished into the menu surface—and fixed a wrapping bug [5] that was mangling Markdown prose around URLs and indented content.
Action items
- → Pull the ChatWidget decomposition and metadata hydration fixes into your local build openai/codex [plan]
- → Review the hooks trust flow prompt on your next startup—verify the UX works for your workflow openai/codex [monitor]
- → Test light-mode TUI if you run a light terminal theme—selection contrast should be clear now openai/codex [monitor]
References
- [1] Split ChatWidget state into focused modules ↗ openai/codex
- [2] Avoid blocking TUI on agent metadata hydration ↗ openai/codex
- [3] Improve hooks trust flow in TUI ↗ openai/codex
- [4] fix(tui): improve light-mode selection contrast ↗ openai/codex
- [5] fix(tui): preserve wrapped prose beside URLs ↗ openai/codex
FAQ
- What changed in OpenAI on May 10, 2026?
- ChatWidget's state bag has been decomposed into focused modules , and the TUI no longer blocks on metadata hydration during large agent fan-outs .
- What should OpenAI teams do about it?
- Pull the ChatWidget decomposition and metadata hydration fixes into your local build • Review the hooks trust flow prompt on your next startup—verify the UX works for your workflow • Test light-mode TUI if you run a light terminal theme—selection contrast should be clear now
- Which OpenAI repositories shipped on May 10, 2026?
- openai/codex