[PR #13454] fix(tui): clear modal input on ctrl+c before close #14674

Open
opened 2026-02-16 18:19:27 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/13454

State: open
Merged: No


What does this PR do?

Closes #13452.
Fixes inconsistent Ctrl+C behavior in TUI between modals and main prompt.

How did you verify your code works?

  • In modal text input (e.g. command/search), Ctrl+C clears typed text
  • Pressing Ctrl+C again with empty input closes the modal
  • Escape still closes immediately
  • With terminal text selection active, Ctrl+C is not hijacked by modal-close handling
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/13454 **State:** open **Merged:** No --- ### What does this PR do? Closes #13452. Fixes inconsistent `Ctrl+C` behavior in TUI between modals and main prompt. ### How did you verify your code works? - In modal text input (e.g. command/search), `Ctrl+C` clears typed text - Pressing `Ctrl+C` again with empty input closes the modal - `Escape` still closes immediately - With terminal text selection active, `Ctrl+C` is not hijacked by modal-close handling
yindo added the pull-request label 2026-02-16 18:19:27 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14674