Skip to content

Add X11 primary selection and middle-click paste support - #49112

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/6ba7bddffda60183b7f9ad5cd69a97da8a4a8dcd
Sep 29, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/6ba7bddffda60183b7f9ad5cd69a97da8a4a8dcd

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Add X11 primary selection and middle-click paste support

What changed

  • Publish released mouse selections from both transcript views to X11 PRIMARY as plain text, even when copy-on-select is disabled. Preserve configured CLIPBOARD copying when it is enabled.
  • Paste PRIMARY into the editable fullscreen composer on middle-click, including while a transcript selection remains active.
  • Limit support to local Linux X11 sessions, excluding Wayland, SSH, tmux, WSL, and VS Code terminals.
  • Retain the latest deferred selection publication and order it before a pending PRIMARY read, while giving explicit copies priority. Cancel stale deferred work when its selection or paste target is invalidated.
  • Clarify that scrollback mode uses native terminal copy, paste, and scrollback.

Testing

Add regression tests for selection publication with copy-on-select enabled and disabled, publication-before-read ordering, explicit-copy priority, cancellation of deferred work, and middle-click paste invalidation.

## What changed

- Publish released mouse selections from both transcript views to X11 `PRIMARY` as plain text, even when copy-on-select is disabled. Preserve configured `CLIPBOARD` copying when it is enabled.
- Paste `PRIMARY` into the editable fullscreen composer on middle-click, including while a transcript selection remains active.
- Limit support to local Linux X11 sessions, excluding Wayland, SSH, tmux, WSL, and VS Code terminals.
- Retain the latest deferred selection publication and order it before a pending `PRIMARY` read, while giving explicit copies priority. Cancel stale deferred work when its selection or paste target is invalidated.
- Clarify that scrollback mode uses native terminal copy, paste, and scrollback.

## Testing

Add regression tests for selection publication with copy-on-select enabled and disabled, publication-before-read ordering, explicit-copy priority, cancellation of deferred work, and middle-click paste invalidation.

GitOrigin-RevId: 6ba7bddffda60183b7f9ad5cd69a97da8a4a8dcd
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/6ba7bddffda60183b7f9ad5cd69a97da8a4a8dcd branch from 45fc336 to 0196495 Compare September 29, 2026 00:41
@copyberry
copyberry Bot merged commit 0196495 into main Sep 29, 2026
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/6ba7bddffda60183b7f9ad5cd69a97da8a4a8dcd branch September 29, 2026 00:41
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 29, 2026

This branch was previously deployed

1 inactive deployment
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants