mirror of
https://github.com/openai/codex.git
synced 2026-10-28 18:58:46 +00:00
## Why VTE versions before 0.54 lack the parser that safely ignores unknown OSC sequences. Terminal status reporting needs to account for the VTE backend even when the terminal identifies itself as GNOME Terminal or another application. ## What changed - Track VTE backend versions independently of terminal application identity. - Disable `OSC 7501` and `OSC 21337` status reporting when the detected VTE version is below 0.54. Preserve existing behavior for newer or unknown versions. - Prefer `VTE_VERSION` over the terminal application version, treating empty or malformed values as unknown. ## Testing Add regression tests for GNOME identity with VTE metadata, version precedence, and status protocol selection around the VTE 0.54 boundary, including unknown versions. GitOrigin-RevId: 1aa57901d1b1457f9971c07cb51ec4554915ae3b