Keybind close opencode in a subagent #6939

Open
opened 2026-02-16 18:05:39 -05:00 by yindo · 3 comments
Owner

Originally created by @pedro757 on GitHub (Jan 20, 2026).

Originally assigned to: @kommander on GitHub.

Description

"keybinds": {
"messages_half_page_up": "ctrl+u",
"messages_half_page_down": "ctrl+d",
}

CTRL-d In a subagents kills opencode process

Plugins

No response

OpenCode version

1.1.27

Steps to reproduce

Config here:
{
  "$schema": "https://opencode.ai/config.json",
  // Theme configuration
  "theme": "opencode",
  "autoupdate": true,
  "permission": {
    "edit": "ask",
    "bash": "ask",
  },
  "keybinds": {
    "messages_half_page_up": "ctrl+u",
    "messages_half_page_down": "ctrl+d",
  }
}

  1. Copy the config above
  2. Enter in a subagent process Leader + right
  3. Hit CTRL-d and see how opencode process is shut down

Screenshot and/or share link

No response

Operating System

Linux omarchy 6.18.3-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 02 Jan 2026 17:52:55 +0000 x86_64 GNU/Linux

Terminal

Ghostty 1.2.3-arch2 Version - version: 1.2.3-arch2 - channel: tip Build Config - Zig version : 0.14.1 - build mode : builtin.OptimizeMode.ReleaseFast - app runtime : apprt.Runtime.gtk - font engine : font.main.Backend.fontconfig_freetype - renderer : renderer.generic.Renderer(renderer.OpenGL) - libxev : io_uring - kernel version: 6.18.3-arch1-1 - desktop env : other - GTK version : build : 4.20.2 runtime : 4.20.3 - libadwaita : enabled build : 1.8.1 runtime : 1.8.3 - libX11 : enabled - libwayland : enabled

Originally created by @pedro757 on GitHub (Jan 20, 2026). Originally assigned to: @kommander on GitHub. ### Description "keybinds": { "messages_half_page_up": "ctrl+u", "messages_half_page_down": "ctrl+d", } CTRL-d In a subagents kills opencode process ### Plugins _No response_ ### OpenCode version 1.1.27 ### Steps to reproduce <details> <summary>Config here:</summary> ``` { "$schema": "https://opencode.ai/config.json", // Theme configuration "theme": "opencode", "autoupdate": true, "permission": { "edit": "ask", "bash": "ask", }, "keybinds": { "messages_half_page_up": "ctrl+u", "messages_half_page_down": "ctrl+d", } } ``` </details> 1. Copy the config above 2. Enter in a subagent process `Leader + right` 3. Hit `CTRL-d` and see how opencode process is shut down ### Screenshot and/or share link _No response_ ### Operating System Linux omarchy 6.18.3-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 02 Jan 2026 17:52:55 +0000 x86_64 GNU/Linux ### Terminal Ghostty 1.2.3-arch2 Version - version: 1.2.3-arch2 - channel: tip Build Config - Zig version : 0.14.1 - build mode : builtin.OptimizeMode.ReleaseFast - app runtime : apprt.Runtime.gtk - font engine : font.main.Backend.fontconfig_freetype - renderer : renderer.generic.Renderer(renderer.OpenGL) - libxev : io_uring - kernel version: 6.18.3-arch1-1 - desktop env : other - GTK version : build : 4.20.2 runtime : 4.20.3 - libadwaita : enabled build : 1.8.1 runtime : 1.8.3 - libX11 : enabled - libwayland : enabled
yindo added the opentuibug labels 2026-02-16 18:05:39 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 20, 2026):

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

  • #6650: Clearing input with cmd+backspace breaks w/ messages_half_page_up configured - uses the same keybind configuration with messages_half_page_up and messages_half_page_down
  • #9507: Terminal hangs on exit or ctrl + D - related to CTRL+D behavior

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

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

@github-actions[bot] commented on GitHub (Jan 20, 2026): This issue might be a duplicate of existing issues. Please check: - #6650: Clearing input with cmd+backspace breaks w/ `messages_half_page_up` configured - uses the same keybind configuration with `messages_half_page_up` and `messages_half_page_down` - #9507: Terminal hangs on exit or ctrl + D - related to CTRL+D behavior For keybind-related issues, please also check our pinned keybinds documentation: #4997 Feel free to ignore if none of these address your specific case.
Author
Owner

@pedro757 commented on GitHub (Jan 20, 2026):

I noticed that a similar problem occurs when I see edit changes in fullscreen mode CTRL-f. In this case, it does not kill the opencode process, but interrupts the session.

@pedro757 commented on GitHub (Jan 20, 2026): I noticed that a similar problem occurs when I see edit changes in fullscreen mode `CTRL-f`. In this case, it does not kill the opencode process, but interrupts the session.
Author
Owner

@Straffern commented on GitHub (Jan 26, 2026):

I see the same issue.
For me it also happens when pressing 'ctrl+d' on a fresh opencode session (no prompt or history)

@Straffern commented on GitHub (Jan 26, 2026): I see the same issue. For me it **also** happens when pressing 'ctrl+d' on a fresh opencode session (no prompt or history)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6939