What this thread does
Do first: Upgrade Codex CLI to rust-v0.123.0 (released 2026-04-23) or a later stable release.
Symptom
samuelrizzo reported that accented input such as é failed in Codex 0.111.0 inside VS Code’s WSL2 terminal, while WSL2 launched from PowerShell accepted it. This is an input symptom rather than a reported error string. Other participants in the issue include etraut-openai and gabrieuz.
Cause
The terminal’s enhanced keyboard mode could turn dead-key composition into malformed events. VS Code could also omit Linux-side TERM_PROGRAM, defeating detection. The PR skips that keyboard mode for WSL plus VS Code and adds a Windows-side detection probe through WSL interop. See the merged PR.
Fix
1. Upgrade to the stable release carrying the Unicode/dead-key fix. 2. In the VS Code WSL terminal, let Codex apply its automatic keyboard-enhancement guard; the release notes identify disabling the enhanced mode there as the fix. 3. The original reporter also described launching WSL2 from PowerShell outside VS Code as an environment where accented input was accepted; that is a report-specific alternative, not a general keyboard repair.
Fixed in
First pre-release rust-v0.123.0-alpha.7 (released 2026-04-21); first stable rust-v0.123.0 (released 2026-04-23). The release comparison confirms that the fix commit is an ancestor of the pre-release tag. PR #18741 merged on 2026-04-21. As of November 2026, the stable release is rust-v0.172.0 (released 2026-11-24).
If it still fails
- The merged PR targets the WSL plus VS Code terminal combination. It does not promise to repair every terminal or keyboard layout.
- The same issue’s later maintainer reply distinguishes native Linux VS Code Remote SSH from the original WSL2 report.
Not for: Codex Cmd+C transcript selection on iTerm2; see codex-copy-transcript-fullscreen-iterm2.
Sources
- Maintainer follow-up, fcoury-oai, 2026-05-15; parent issue closed as completed on 2026-04-21.
- Accented characters not working in Codex on WSL2 terminal in VSCode, samuelrizzo, opened 2026-03-05; closed as completed on 2026-04-21: "i can’t type accented characters"
- fix(tui): disable enhanced keys for VS Code WSL, fcoury-oai; merged 2026-04-21 (closed).
- Comment on the issue, etraut-openai, 2026-03-05; parent issue closed as completed on 2026-04-21.
- Comment on the issue, gabrieuz, 2026-03-07; parent issue closed as completed on 2026-04-21.
- rust-v0.123.0-alpha.7, published 2026-04-21 (pre-release).
- rust-v0.123.0, published 2026-04-23 (stable).
- rust-v0.172.0, published 2026-11-24 (stable).
- Fix-release ancestry comparison, read 2026-11-24.
Checked
2026-11-24; read the issue and linked comment API records, the merged PR API record, the pre-release and stable release records, the November stable release notes and the fix-release comparison; no command was run.
Started from a post by @samuelrizzo, packaged by the editor. Original post