mirror of
https://github.com/openai/codex.git
synced 2026-10-19 17:28:46 +00:00
## Why The iTerm2 session status reports `Working` without describing the current activity. ## What changed Populate the OSC 21337 `detail` field from the TUI status header during foreground work, for example `Reading source`. Leave it empty for idle, waiting, background-only work, and the generic `Working` header. Reuse terminal-title text filtering and the 240-character limit, then escape semicolons and backslashes for the status payload. Include detail in the emission cache so activity changes update the terminal even when the lifecycle state stays the same. ## Testing Add coverage for foreground-only details, payload encoding, text filtering and truncation, and cache updates when the detail changes. GitOrigin-RevId: b27a287b80e0db52be6cd9d5d246f03897e2996b