Skip to content

fix(desktop): route terminal copy/paste through the native clipboard - #64

Merged
abdoufermat5 merged 1 commit into
mainfrom
ccr-392cd316-b6d5dm
Oct 29, 2026
Merged

abdoufermat5 merged 1 commit into
mainfrom
ccr-392cd316-b6d5dm

Conversation

@abdoufermat5

Copy link
Copy Markdown
Owner

v2.13.10 replaced WebKit's native right-click Copy/Paste with a custom
menu, and every terminal copy/paste path now went through
navigator.clipboard. WebKit (the macOS and Linux webviews) gates that API
behind a paste prompt or refuses it, so copy and paste stopped working in
the desktop app while still passing in Chromium.

  • read_clipboard_text / write_clipboard_text commands backed by one
    long-lived arboard handle (X11/Wayland need the owner to stay alive),
    shared with read_primary_selection; arboard now builds on all targets
  • keyboard paste, context-menu paste, middle-click and copy use them,
    falling back to the web clipboard API and execCommand
  • multi-line paste no longer uses Promise.withResolvers, which older
    WebKit lacks and which left the paste dialog lock stuck on

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01GxD29qJcJUwFbw26tSbBeb

v2.13.10 replaced WebKit's native right-click Copy/Paste with a custom
menu, and every terminal copy/paste path now went through
navigator.clipboard. WebKit (the macOS and Linux webviews) gates that API
behind a paste prompt or refuses it, so copy and paste stopped working in
the desktop app while still passing in Chromium.

- read_clipboard_text / write_clipboard_text commands backed by one
  long-lived arboard handle (X11/Wayland need the owner to stay alive),
  shared with read_primary_selection; arboard now builds on all targets
- keyboard paste, context-menu paste, middle-click and copy use them,
  falling back to the web clipboard API and execCommand
- multi-line paste no longer uses Promise.withResolvers, which older
  WebKit lacks and which left the paste dialog lock stuck on

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GxD29qJcJUwFbw26tSbBeb
@abdoufermat5
abdoufermat5 merged commit 6619884 into main Oct 29, 2026
4 checks passed
@abdoufermat5 abdoufermat5 mentioned this pull request Oct 29, 2026
2 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants