Skip to content

[FEATURE]: TUI: No keyboard shortcut to re-focus input textarea after tmux pane switch #17268

Closed as not planned

Description

@z-traveler

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

When running OpenCode in a tmux pane alongside other panes, switching away and back causes the scrollbox (message area) to have focus instead of the input textarea. j/k scroll works (confirming scrollbox has focus), but there is no keyboard shortcut to move focus back to the input prompt.

The Web/Desktop version has input.focus (Ctrl+L) in use-session-commands.tsx, but the TUI version (dialog-command.tsx command system) does not register an equivalent command.

Workaround: Mouse click on the input area.

Expected: A keybind (e.g. Escape or configurable via tui.json) to return focus to the input textarea from the scrollbox.

Environment: Debian 10, tmux next-3.3, Windows Terminal, OpenCode 1.2.22

Activity

  1. added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Mar 13, 2026
  2. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Mar 13, 2026
  3. github-actions commented on Mar 13, 2026

    @github-actions
    Contributor

    For keybind-related issues, please also check our pinned keybinds documentation: #4997

  4. removed
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  5. github-actions commented on Jul 3, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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

Metadata

Metadata

Assignees

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