Skip to content

Add selection and copying to the transcript viewer - #46732

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

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

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 20, 2026 •

Copy link
Copy Markdown

Add selection and copying to the transcript viewer

What changed

  • Add mouse selection, word and line selection, drag autoscrolling, and keyboard selection with Ctrl+Space. Support copying selected text and opening links with a modified click.
  • Anchor reading positions and selections to source text so resizing, streaming completion, and history pagination preserve the displayed content. Preserve hard line breaks, indentation, tabs, and graphemes when copying, while excluding display gutters and soft wraps.
  • Rejoin activity groups split across history pages while retaining the reader's displayed revision.
  • Distinguish confirmed clipboard writes from unconfirmed terminal requests, and retain native clipboard ownership after the transcript overlay closes.
  • Manage mouse capture and keyboard modes across overlay transitions, editor handoffs, and suspend/resume.

Testing

Add regression tests for selection during live updates and pagination, source-text copying across resize, clipboard confirmation and lifetime, and terminal mode restoration.

## What changed

- Add mouse selection, word and line selection, drag autoscrolling, and keyboard selection with `Ctrl+Space`. Support copying selected text and opening links with a modified click.
- Anchor reading positions and selections to source text so resizing, streaming completion, and history pagination preserve the displayed content. Preserve hard line breaks, indentation, tabs, and graphemes when copying, while excluding display gutters and soft wraps.
- Rejoin activity groups split across history pages while retaining the reader's displayed revision.
- Distinguish confirmed clipboard writes from unconfirmed terminal requests, and retain native clipboard ownership after the transcript overlay closes.
- Manage mouse capture and keyboard modes across overlay transitions, editor handoffs, and suspend/resume.

## Testing

Add regression tests for selection during live updates and pagination, source-text copying across resize, clipboard confirmation and lifetime, and terminal mode restoration.

GitOrigin-RevId: 6b2438f576567cbba755b2405915a25acf009b8d
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/6b2438f576567cbba755b2405915a25acf009b8d branch from ee4bfaa to d7d9f2b Compare September 20, 2026 00:04
@copyberry
copyberry Bot merged commit d7d9f2b into main Sep 20, 2026
1 check passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/6b2438f576567cbba755b2405915a25acf009b8d branch September 20, 2026 00:04
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 20, 2026
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.

1 participant