Skip to content

Add configurable copy-on-select for transcript selections - #47639

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/24e6f9e267ef3ab249c5356db736e094127f68b8
Sep 23, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/24e6f9e267ef3ab249c5356db736e094127f68b8

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

Add configurable copy-on-select for transcript selections

What changed

  • Add tui.copy_on_select with auto (default), always, and never modes, and apply it to the fullscreen transcript, transcript overlay, and resume/fork previews.
  • Enable auto in tmux and Zellij, and in direct macOS terminals except Ghostty and Kitty. On other platforms, enable it in direct terminals identified as iTerm2 or Terminal.app.
  • Copy nonempty mouse selections on release, including word and line selections, while retaining their highlight. Preserve link activation and ignore empty selections.
  • Clear composer selections after confirmed keyboard copies, matching right-click copies, while preserving the draft and cursor. Keep selections when copying fails or delivery is unconfirmed.

Testing

Add coverage for terminal defaults and configuration overrides, copying on release, retained highlights, repeated clicks, link activation, and empty drags. Extend composer coverage to verify selection clearing for Cmd-C, Ctrl-C, and right-click across clipboard outcomes.

## What changed

- Add `tui.copy_on_select` with `auto` (default), `always`, and `never` modes, and apply it to the fullscreen transcript, transcript overlay, and resume/fork previews.
- Enable `auto` in tmux and Zellij, and in direct macOS terminals except Ghostty and Kitty. On other platforms, enable it in direct terminals identified as iTerm2 or Terminal.app.
- Copy nonempty mouse selections on release, including word and line selections, while retaining their highlight. Preserve link activation and ignore empty selections.
- Clear composer selections after confirmed keyboard copies, matching right-click copies, while preserving the draft and cursor. Keep selections when copying fails or delivery is unconfirmed.

## Testing

Add coverage for terminal defaults and configuration overrides, copying on release, retained highlights, repeated clicks, link activation, and empty drags. Extend composer coverage to verify selection clearing for `Cmd-C`, `Ctrl-C`, and right-click across clipboard outcomes.

GitOrigin-RevId: 24e6f9e267ef3ab249c5356db736e094127f68b8
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/24e6f9e267ef3ab249c5356db736e094127f68b8 branch from b883ec5 to ab021e9 Compare September 23, 2026 19:37
@copyberry
copyberry Bot merged commit ab021e9 into main Sep 23, 2026
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/24e6f9e267ef3ab249c5356db736e094127f68b8 branch September 23, 2026 19:37
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 23, 2026

This branch was previously deployed

1 inactive deployment
issue-triage — ab021e9f Deployed Sep 23, 2026 by sparticlesteve via Translate non-English issue #14781
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