mirror of
https://github.com/openai/codex.git
synced 2026-10-19 17:28:46 +00:00
## Why `TERM_SESSION_ID` is not specific to Apple Terminal. Treating it as an Apple Terminal identifier can mask Windows Terminal detection and the `TERM` fallback. ## What changed Remove the `TERM_SESSION_ID` detection heuristic. Apple Terminal remains detectable through `TERM_PROGRAM=Apple_Terminal`. ## Testing Update tests to cover Windows Terminal detection and the `TERM` fallback when `TERM_SESSION_ID` is present, and Apple Terminal detection with its version and user-agent token. GitOrigin-RevId: 27db11cb7bcca8f94888f9e21a6cdfcf31561b1b