Repository navigation
Route pastes into the active history search query - #45262
Merged
copyberry[bot] merged 1 commit intoSep 13, 2026
Merged
copyberry[bot] merged 1 commit into
copyberry[bot] merged 1 commit into
Conversation
## Why Pasting during `Ctrl+R` history search previously went through normal composer paste handling instead of updating the search query. ## What changed - Append sanitized pasted text to the active query and restart matching from the newest history entry, including for large pastes and image paths. - Ignore empty pastes so they preserve the selected match. - Display newlines and tabs as `↵` and `⇥` in the footer while matching the original query, and clamp the cursor safely for very large queries. ## Testing Add regression tests and snapshots covering pasted query acceptance, empty pastes, draft restoration on misses and cancellation, sanitization, large pastes, image paths, separator rendering, and cursor placement. GitOrigin-RevId: 2ec13fdddcb7503a72a21fc03b2a27ed36313a8a
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/2ec13fdddcb7503a72a21fc03b2a27ed36313a8a
branch
from
September 13, 2026 17:16
3928a64 to
a505c71
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/2ec13fdddcb7503a72a21fc03b2a27ed36313a8a
branch
September 13, 2026 17:16
EngineeringErgonomics
deployed
to
issue-triage
September 13, 2026 17:18 — with
GitHub Actions
Active
EngineeringErgonomics
deployed
to
issue-triage
September 13, 2026 17:18 — with
GitHub Actions
Active
EngineeringErgonomics
deployed
to
issue-triage
September 13, 2026 17:18 — with
GitHub Actions
Active
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Route pastes into the active history search query
Why
Pasting during
Ctrl+Rhistory search previously went through normal composer paste handling instead of updating the search query.What changed
↵and⇥in the footer while matching the original query, and clamp the cursor safely for very large queries.Testing
Add regression tests and snapshots covering pasted query acceptance, empty pastes, draft restoration on misses and cancellation, sanitization, large pastes, image paths, separator rendering, and cursor placement.