Control-D should exit the application #2163

Closed
opened 2026-02-16 17:34:28 -05:00 by yindo · 2 comments
Owner

Originally created by @jacobrec on GitHub (Oct 18, 2025).

Rationale

  • User Expectation: Ctrl-D is the standard UNIX/Linux convention for sending an EOF (end-of-file) signal, which typically exits interactive shells and REPL applications
  • Muscle Memory: Users frequently press Ctrl-D out of habit when finishing with terminal applications (bash, zsh, python REPL, node REPL, psql, etc.)
  • Consistency: Following this convention makes opencode more intuitive and reduces friction for developers familiar with terminal workflows
  • Ergonomics: Ctrl-D is a quick, single-handed shortcut that is easier than typing exit commands or navigating menus

Current Behavior

Ctrl-D does not quit the application

Expected Behavior

Pressing Ctrl-D should cleanly exit the opencode TUI application, similar to how it works in shells and other interactive terminal programs

Implementation Notes

  • May want to confirm before quitting if there are unsaved changes or active operations
  • Should be documented in help/docs alongside other quit methods
Originally created by @jacobrec on GitHub (Oct 18, 2025). ## Rationale - **User Expectation**: Ctrl-D is the standard UNIX/Linux convention for sending an EOF (end-of-file) signal, which typically exits interactive shells and REPL applications - **Muscle Memory**: Users frequently press Ctrl-D out of habit when finishing with terminal applications (bash, zsh, python REPL, node REPL, psql, etc.) - **Consistency**: Following this convention makes opencode more intuitive and reduces friction for developers familiar with terminal workflows - **Ergonomics**: Ctrl-D is a quick, single-handed shortcut that is easier than typing exit commands or navigating menus ## Current Behavior Ctrl-D does not quit the application ## Expected Behavior Pressing Ctrl-D should cleanly exit the opencode TUI application, similar to how it works in shells and other interactive terminal programs ## Implementation Notes - May want to confirm before quitting if there are unsaved changes or active operations - Should be documented in help/docs alongside other quit methods
yindo closed this issue 2026-02-16 17:34:28 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 18, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #3025: opencode does not exit on ^D - Same request for Ctrl+D to terminate opencode
  • #925: Better quit support - Also requests Ctrl+D support for quitting, similar to other REPLs

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Oct 18, 2025): This issue might be a duplicate of existing issues. Please check: - #3025: opencode does not exit on ^D - Same request for Ctrl+D to terminate opencode - #925: Better quit support - Also requests Ctrl+D support for quitting, similar to other REPLs Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Oct 18, 2025):

closing as duplicate of #3025

but yeah that makes sense we should do that.

@rekram1-node commented on GitHub (Oct 18, 2025): closing as duplicate of #3025 but yeah that makes sense we should do that.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2163