Skip to content

[Terminal] windows 端终端无法使用快捷键复制 #1970

Done

Description

@xiufeigo

windows 端终端选中后无法使用 Ctrl + C 或者 Ctrl + Shift + C 来复制,必须使用鼠标右键菜单才能选择复制。

Activity

  1. Hona commented on Dec 1, 2026

    @Hona
    Member

    Fixed in PR #1978 (merged to dev in 9d6a0049).

    What changed

    • Ctrl+Shift+C copy restored on Windows (and Linux): Pane-scoped browser commands in plugins/browser/init.luau (including browser.inspect on mod+shift+c) were intercepting Ctrl+Shift+C before the terminal's Bind::TerminalCopy handler ran, even when no browser tab was focused or open. Browser-scoped commands now gate on Browser:Focused() ~= nil (and dormant browser scoped commands no longer claim terminal chords), and terminal-owned shortcuts now run ahead of plugin chord checks. Ctrl+Shift+C with no selection is also consumed without sending SIGINT.
    • Ctrl+C with selection now copies on Windows: Selecting text in the Windows terminal and pressing Ctrl+C (or choosing Edit › Copy) copies the selection and clears it; pressing Ctrl+C with no selection continues to send SIGINT to the shell.

    Verification

    • Verified locally with pwsh scripts/guardrails.ps1 (11/11), cargo check -p opencode-ui -p opencode-feature-terminal-surface -p opencode-desktop --lib --bins, and cargo clippy --no-deps.
    • Live interactive Windows GUI terminal copy/SIGINT and macOS/Linux builds were not run locally.

    Please reopen if copying with Ctrl+C or Ctrl+Shift+C in the Windows terminal still doesn't work as expected after updating.

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

Metadata

Metadata

Assignees

No one assigned

    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