mirror of
https://github.com/openai/codex.git
synced 2026-09-13 11:47:17 +00:00
Centralize the keyboard-enhancement decision in `codex-terminal-detection` and use it from both the main TUI and `codex-cloud-tasks`. This also keeps the main composer from advertising enhanced-key behavior when the flags are intentionally disabled. WSL users running inside the VS Code integrated terminal can hit dead-key composition failures when Codex pushes progressive keyboard enhancement flags. Disable those flags in that environment and add coverage for the shared policy.