Skip to content

[BUG] Ctrl+C and right-click Copy fail in chat replies, Ctrl+Insert works (VS Code webview routing) #15469

Closed

Description

@WnDTech

Description

Can't copy selected text from Kilo Code chat replies in VS Code with Ctrl+C or right-click > Copy. Ctrl+Insert works.

  • Select any Kilo assistant reply text in sidebar chat
  • Right-click > Copy: nothing copied
  • Ctrl+C: nothing copied (paste gives old content)
  • Ctrl+Insert with same selection: copies correctly
  • Copy in VS Code editor works fine - only Kilo replies affected

Troubleshooting log (Developer: Toggle Keyboard Shortcuts Troubleshooting)

Keyboard event cannot be dispatched in keydown phase.
Received  keydown event - modifiers: [ctrl], code: KeyC, keyCode: 67, key: c
Converted keydown event - modifiers: [ctrl], code: KeyC, keyCode: 33 ('C')
Resolving ctrl+C
From 10 keybinding entries, matched editor.action.clipboardCopyAction, when: no when condition, source: built-in.
Invoking command editor.action.clipboardCopyAction.

So Ctrl+C never reaches the webview - VS Code runs editor copy with no editor focused and swallows it. Ctrl+Insert has no VS Code binding so falls through to Chromium native copy.

Right-click Copy likely uses navigator.clipboard.writeText which fails inside webview iframe (Write permission denied, cf. microsoft/vscode#182642).

Tried "key": "ctrl+c", "command": "-editor.action.clipboardCopyAction", "when": "webviewFocus" passthrough in keybindings.json + full restart - still fails.

Kilo version

7.8.17-win32-x64

VS Code version

1.143.1, x64, Windows

Operating System

Windows 11

Steps to reproduce

  1. Open Kilo Code sidebar chat
  2. Get any assistant reply
  3. Drag-select reply text
  4. Press Ctrl+C, paste in Notepad - old content
  5. Same selection with Ctrl+Insert, paste - correct text

Activity

  1. alexey-vaiman commented on Oct 26, 2026

    @alexey-vaiman

    context menu on right click does not work at all and never did

  2. marius-kilocode commented on Oct 26, 2026

    @marius-kilocode
    Collaborator

    Fixed by #15472, which ships in v7.8.18. Same root cause as #15379 (VS Code 1.143 moves focus to the webview before the copy command runs, so the selection clears). Please reopen if Ctrl+C or right-click Copy still fails after you update to v7.8.18.

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

    communityOpened by someone outside the Kilo teamneeds-triageWaiting for a maintainer to look

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions