Skip to content

Bug: "ctrl+p" keyboard shortcut is completely unresponsive on Windows (v1.18.2) #37165

Description

@miaonai

Description

The ctrl+p keyboard shortcut is completely unresponsive in the latest version (v1.18.2). By default, ctrl+p is mapped to command_list, but pressing it has no effect. This was working perfectly in the previous version I used (v1.17.20).

I have verified that the issue is specific to the ctrl+p key combination itself, not the underlying functions or a specific shell environment:

  • If I remap command_list to ctrl+o in tui.json, pressing ctrl+o triggers the command list correctly.
  • If I attempt to remap another function (e.g., agent_cycle) to ctrl+p in tui.json, pressing ctrl+p still does nothing. Removing this custom mapping restores the function's default shortcut.
  • I have tested this across multiple environments on Windows 11 (PowerShell 7, built-in Windows PowerShell, Git Bash, and CMD). The issue persists in all of them.

It seems ctrl+p is being intercepted, ignored, or broken across all Windows terminals in v1.18.2.

Plugins

None

OpenCode version

1.18.2

Steps to reproduce

  1. Open OpenCode v1.18.2 on Windows 11 using any shell (tested on PowerShell 7, Windows PowerShell, Git Bash, and CMD).
  2. Press ctrl+p to open the command list (default behavior).
  3. Observe that nothing happens.
  4. Open tui.json and set "keybinds": { "command_list": "ctrl+o" }. Restart OpenCode and press ctrl+o -> command list opens successfully.
  5. Change tui.json to "keybinds": { "agent_cycle": "ctrl+p" }. Restart OpenCode and press ctrl+p -> nothing happens.

Screenshot and/or share link

N/A (Keyboard shortcut issue)

Operating System

Windows 11

Terminal

Windows Terminal (PowerShell 7, Windows PowerShell, CMD) and Git Bash

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions