Skip to content

Control-D should exit the application #3264

Closed as duplicate
Closed as duplicate

Description

@jacobrec

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

Activity

  1. github-actions commented on Oct 18, 2025

    @github-actions
    Contributor

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

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

  2. rekram1-node commented on Oct 18, 2025

    @rekram1-node
    Contributor

    closing as duplicate of #3025

    but yeah that makes sense we should do that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions