GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [BUG] Ctrl+X (agent switcher) is dangerously close to Ctrl+C (quit) — should be remapped to Ctrl+K · Issue #23322 · anomalyco/opencode

[BUG] Ctrl+X (agent switcher) is dangerously close to Ctrl+C (quit) — should be remapped to Ctrl+K #23322

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
[BUG] Ctrl+X (agent switcher) is dangerously close to Ctrl+C (quit) — should be remapped to Ctrl+K#23322
Copy link
Assignees
rekram1-node

Description

@talha7k
talha7k
opened on Apr 18, 2026
Issue body actions

Description

The Ctrl+X keybinding for opening the agent/session picker is too close to Ctrl+C, which immediately quits OpenCode and clears the current session. This makes it extremely easy to accidentally close the entire program when you intended to switch agents or view sub-agent tasks — losing your unsent prompt, current context, and interrupting running tasks.

Current behavior

  • Ctrl+X → Opens agent/session picker (chord: Ctrl+X then arrow keys)
  • Ctrl+C → Immediately quits OpenCode, clearing everything with no confirmation

Expected behavior

Remap the agent switcher to a safer keybinding that isn't adjacent to the quit shortcut. Ctrl+K would be a natural choice — it's the standard chord leader key used by many popular TUIs (lazygit, helix, etc.) and has no risk of accidental adjacency with Ctrl+C.

Proposed fix

  • Change agent/session picker from Ctrl+X → Ctrl+K
  • This follows the convention used by lazygit, helix, and other modern terminal UIs where Ctrl+K is the leader key for navigation actions

Alternative / complementary fix

See related issue: Ctrl+C should ask for confirmation before closing. Both fixes together would eliminate the problem entirely.

OpenCode version

1.4.x

Operating System

macOS

Terminal

Any

Reacted by Gero Müller and Mike Murkovic

Activity

  1. github-actions
    assigned
    rekram1-node
    on Apr 18, 2026
  2. github-actions commented on Apr 18, 2026

    @github-actions
    github-actionsBot
    on Apr 18, 2026 – with GitHub Actions
    Contributor
    More actions

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

    • [UX] Ctrl+D to delete session too easily exits the app #13950: Similar UX issue — Ctrl+D to delete session too easily exits the app (same class of problem: dangerous/adjacent quit shortcuts)
    • Feature: Double Ctrl+C to Quit (Codex CLI-style interrupt handling) #9041: Feature request for double Ctrl+C to quit (Codex CLI-style interrupt handling) — directly related

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

  3. github-actions commented on Jun 18, 2026

    @github-actions
    github-actionsBot
    on Jun 18, 2026 – with GitHub Actions
    Contributor
    More actions

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

  4. github-actions
    closed this as not plannedon Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @rekram1-node
    rekram1-node

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.