Skip to content

tui: avoid Esc interrupt when skill popup active#9451

Merged
joshka-oai merged 4 commits intomainfrom
tui/skill-popup-esc
Jan 19, 2026
Merged

tui: avoid Esc interrupt when skill popup active#9451
joshka-oai merged 4 commits intomainfrom
tui/skill-popup-esc

Conversation

@prateek-oai
Copy link
Contributor

@prateek-oai prateek-oai commented Jan 18, 2026

Fixes #9450

What

  • When a task is running and the skills autocomplete popup is open, Esc now dismisses the popup instead of sending Op::Interrupt.
  • Esc still interrupts a running task when no popup is active.

Tests

  • cargo test -p codex-tui

When a task is running, Esc should dismiss the skill dropdown without interrupting the task.

Add a regression test for the skill popup case and keep the existing behavior (Esc interrupts) when no popup is active.

While here, make a few macOS-focused tests more robust (Homebrew bash path and seatbelt stderr variants) and keep core tests hermetic by default by setting HOME/ZDOTDIR in the test config.
@github-actions
Copy link
Contributor

github-actions bot commented Jan 18, 2026

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

@prateek
Copy link
Contributor

prateek commented Jan 18, 2026

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

@prateek
Copy link
Contributor

prateek commented Jan 18, 2026

recheck

github-actions bot added a commit that referenced this pull request Jan 18, 2026
- Avoid hardcoding specific bash/sh install paths in shell detection tests.
- Keep test harness config helper unchanged (no HOME/ZDOTDIR overrides).
- Make the structured-output shell_command test pass reliably by using a non-login shell.
User requested keeping this PR focused on the TUI Esc/skill-popup fix; revert unrelated core changes.
@etraut-openai etraut-openai added the oai PRs contributed by OpenAI employees label Jan 18, 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.

LGTM - can you add a test for the / command popup too to ensure that also doesn't interrupt the conversation?

@joshka-oai joshka-oai merged commit 0c0c5ae into main Jan 19, 2026
32 checks passed
@joshka-oai joshka-oai deleted the tui/skill-popup-esc branch January 19, 2026 20:52
@github-actions github-actions bot locked and limited conversation to collaborators Jan 19, 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.

Esc dismissing skills autocomplete interrupts running task

4 participants