Keybind: history_next broken with ctrl+n #2545

Closed
opened 2026-02-16 17:36:10 -05:00 by yindo · 3 comments
Owner

Originally created by @jdanbrown on GitHub (Nov 3, 2025).

Originally assigned to: @thdxr on GitHub.

Description

When I use history_next with down (the default) it works fine, but when I try to use it with ctrl+n it produces weird results:

"keybinds": {
  "history_previous": "up,ctrl+p", // Default: "up"
  "history_next": "down,ctrl+n", // Default: "down"
}

In the screencast:

  • up up up down down down
    • Works as expected
  • ctrl+p ctrl+p ctrl+p ctrl+n ctrl+n ctrl+n
    • The first ctrl+n gets "stuck" — this is the bug
  • ctrl+p ctrl+p ctrl+p down ctrl+n ctrl+n ctrl+n
    • Pressing down somehow "un-sticks" the ctrl+n, and then ctrl+n starts working as expected (i.e. like down)

https://github.com/user-attachments/assets/3d5b39bb-03d5-47fc-a634-ab8556a4c321

OpenCode version

1.0.16

Steps to reproduce

(above)

Screenshot and/or share link

No response

Operating System

macOS 15.5

Terminal

VS Code terminal

Originally created by @jdanbrown on GitHub (Nov 3, 2025). Originally assigned to: @thdxr on GitHub. ### Description When I use `history_next` with `down` (the default) it works fine, but when I try to use it with `ctrl+n` it produces weird results: ```jsonc "keybinds": { "history_previous": "up,ctrl+p", // Default: "up" "history_next": "down,ctrl+n", // Default: "down" } ``` In the screencast: - `up up up down down down` - Works as expected - `ctrl+p ctrl+p ctrl+p ctrl+n ctrl+n ctrl+n` - The first `ctrl+n` gets "stuck" — this is the bug - `ctrl+p ctrl+p ctrl+p down ctrl+n ctrl+n ctrl+n` - Pressing `down` somehow "un-sticks" the `ctrl+n`, and then `ctrl+n` starts working as expected (i.e. like `down`) https://github.com/user-attachments/assets/3d5b39bb-03d5-47fc-a634-ab8556a4c321 ### OpenCode version 1.0.16 ### Steps to reproduce (above) ### Screenshot and/or share link _No response_ ### Operating System macOS 15.5 ### Terminal VS Code terminal
yindo added the opentuibug labels 2026-02-16 17:36:10 -05:00
yindo closed this issue 2026-02-16 17:36:10 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 3, 2025):

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

  • #3640: 1.0.2 - Surprising unexpected ctrl+p/ctrl+n behaviour - Reports ctrl+n doing nothing and ctrl+p behavior changes
  • #2176: Missing readline Ctrl+N and Ctrl+P - User wants to use ctrl+n/p for readline up/down movements instead of message history
  • #3379: opentui: readline-style keybindings not working (ctrl + n, ctrl + p…) - Reports ctrl+n/p not working for navigation in lists/comboboxes

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

@github-actions[bot] commented on GitHub (Nov 3, 2025): This issue might be a duplicate of existing issues. Please check: - #3640: 1.0.2 - Surprising unexpected ctrl+p/ctrl+n behaviour - Reports ctrl+n doing nothing and ctrl+p behavior changes - #2176: Missing readline Ctrl+N and Ctrl+P - User wants to use ctrl+n/p for readline up/down movements instead of message history - #3379: opentui: readline-style keybindings not working (ctrl + n, ctrl + p…) - Reports ctrl+n/p not working for navigation in lists/comboboxes Feel free to ignore if none of these address your specific case.
Author
Owner

@thdxr commented on GitHub (Nov 3, 2025):

fixed will be in next release

@thdxr commented on GitHub (Nov 3, 2025): fixed will be in next release
Author
Owner

@jdanbrown commented on GitHub (Nov 3, 2025):

Thanks! Confirmed fixed on latest dev (0538f43f, unreleased).

@jdanbrown commented on GitHub (Nov 3, 2025): Thanks! Confirmed fixed on latest `dev` (0538f43f, unreleased).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2545