Skip to content

Conversation

@jmickey-oai
Copy link
Contributor

Using terminal with TERM=dumb specifically mean that TUIs and the like don't work. Ensure that codex doesn't run in these environments and exit with odd errors like crossterm's "Error: The cursor position could not be read within a normal duration"

@github-actions
Copy link
Contributor

github-actions bot commented Jan 15, 2026

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@etraut-openai etraut-openai added the oai PRs contributed by OpenAI employees label Jan 15, 2026
@jmickey-oai
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

github-actions bot added a commit that referenced this pull request Jan 20, 2026
Copy link
Collaborator

@joshka-oai joshka-oai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added some bits to this:

  • confirmation prompt to continue anyway
  • added dumb to the term detection code

jmickey-oai and others added 2 commits January 20, 2026 15:37
Using terminal with TERM=dumb specifically mean that TUIs and the like don't work. Ensure that codex doesn't run in these environments and exit with odd errors like crossterm's "Error: The cursor position could not be read within a normal duration"
Route TERM=dumb through terminal detection and user agent tokens.
Warn and prompt before starting the TUI, falling back to a fatal
AppExitInfo when no TTY is available for confirmation.
Add AppExitInfo::fatal for consistent fatal exits.
@jmickey-oai
Copy link
Contributor Author

thanks for carrying this forward with a far better change

@joshka-oai joshka-oai merged commit c14e681 into main Jan 21, 2026
29 of 32 checks passed
@joshka-oai joshka-oai deleted the jmickey/fix-dumb branch January 21, 2026 00:17
@github-actions github-actions bot locked and limited conversation to collaborators Jan 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

oai PRs contributed by OpenAI employees

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants