Skip to content

Up/Down arrow keys no longer navigate prompt history #15761

Closed

Description

@jerome-benoit

Description

Since commit 3dc10a1 ("Change keybindings to navigate between child sessions"), pressing Up/Down arrow keys no longer navigates through prompt history in the TUI.

The commit changed session_parent default keybind from <leader>up to bare up, which now conflicts with history_previous also bound to up. The session_parent command is matched first in the command dialog's useKeyboard handler, which calls evt.preventDefault() before onSelect. When there is no parent session, onSelect silently returns — but the event is already consumed, so it never reaches the textarea's onKeyDown where history navigation lives.

Steps to reproduce

  1. Open opencode TUI
  2. Send a message
  3. Press Up arrow to recall previous prompt
  4. Nothing happens — the arrow key is swallowed by the no-op session_parent command

Operating System

Linux (Ubuntu)

Terminal

Ghostty

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Mar 2, 2026
  2. added a commit that references this issue on Mar 2, 2026
    0c53020
  3. jlongster commented on Mar 3, 2026

    @jlongster
    Contributor

    Good call, will get this fixed asap, sorry about that!

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

Metadata

Metadata

Labels

opentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions