mirror of
https://github.com/openai/codex.git
synced 2026-11-21 22:50:37 +00:00
## Why Saving a generated title awaited thread metadata reads and name writes in the TUI event handler, delaying its return to keyboard polling. ## What changed Move automatic title persistence into the background title-generation task. Make metadata reads cancellable and serialize automatic writes with manual renames so a manual name takes precedence, including when an automatic write is already in flight. ## Testing Extend title tests to check that completion dispatch returns immediately, canceled metadata reads finish, and manual renames wait for in-flight automatic writes. Retain coverage for saving titles to the originating thread after switching threads and preserving existing names. GitOrigin-RevId: b284a06ca3f0fdcf22fd2fc87b07447f8ab754c0