openai / openai/codex

Alt+numeric keypad character input stops working in Codex TUI

Open
#40,260 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug CLI TUI windows-os
Dominant language
Rust
Stars
125k
Forks
19.4k
PR merge metrics
PR metrics pending

Description

What version of Codex CLI is running?

0.149.0

What subscription do you have?

pro

Which model were you using?

any

What platform is your computer?

windows 11

What terminal emulator and version are you using (if applicable)?

powershell 7

Codex doctor report

What issue are you seeing?

Alt+numeric keypad character input stops working in Codex TUI

What steps can reproduce the bug?

Steps to reproduce:

  1. Open a normal PowerShell 7 session.
  2. Press Alt+0126 using the numeric keypad. It correctly produces the ~ character.
  3. Start Codex by running codex.
  4. In the Codex interactive TUI, press Alt+0126 again.
  5. Exit Codex and try Alt+0126 once more in PowerShell.
What is the expected behavior?

Alt+numeric keypad input should produce the corresponding character while using the Codex TUI.

Additional information

Actual behavior:
Alt+0126 does not insert the ~ character while Codex is running. After exiting Codex, the same key combination works
normally again in PowerShell.

This suggests that Codex’s Windows terminal input handling intercepts or disables Alt+numeric keypad character
composition.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing Codex's Windows terminal input handling from the codex entry point and reproduce Alt+0126 in PowerShell 7 and the Codex TUI. Compare the input events received in both contexts; the work is done when Alt+numeric keypad composition inserts ~ in the TUI without regressing other input behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.