fix(keybinds): remove ctrl+c from default app_exit to prevent accidental exits - #43592
Zhangbo-cn wants to merge 1 commit into
Conversation
…tal exits Ctrl+C is the universal interrupt/copy key; binding it to exit by default closes the entire TUI on a single press when the prompt input is empty or during generation. Drop it from the app_exit default (Ctrl+D and <leader>q still exit) and sync the docs. Refs anomalyco#7957
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
|
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
Issue for this PR
Closes #7957
Type of change
What does this PR do?
ctrl+cis bound toapp_exitby default in the TUI, so pressing it with an empty prompt or during generation quits the whole app. That conflicts with the universal copy shortcut and has been reported in #7957 (and earlier in #2999); previous fix PRs (#11291, #9050) were auto-closed before landing.This PR removes
ctrl+cfrom theapp_exitdefault inpackages/tui/src/config/keybind.ts:"ctrl+c,ctrl+d,<leader>q"→"ctrl+d,<leader>q". Ctrl+D and<leader>qstill exit the app. Docs (18 locales) are synced.No tests assert the old default, so no test changes are needed.
How did you verify your code works?
<leader>qstill exit.Screenshots / recordings
Keybinding default change in the TUI; no visible UI diff. Can add a terminal recording if helpful.
Checklist