Repository navigation
Conversation
…ocus Dispatch PressDown on a mouse control before the default focus transfer clears the editor selection. In the quote fixture, wait for the workbench to finish each preceding turn before composing the next message. Generated-by: OpenAI Codex
This branch has not been 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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
On Windows, clicking Quote selection on a read-only message containing a session reference moved focus away from the editor before the button received
PressDown. By then the button had lost the selected word and quoted the entire message. DeliverPressDownto the mouse control before its default focus transfer so the button can capture the selection.The quote fixture also waits for the workbench to finish each turn before starting the next one. It observes Stop response with the mock reply still open, closes the reply, then waits for the control to disappear. This handles the interval in which the provider connection has closed but the composer still treats a submission as steering.
Refs #7355
Verification
c4d16b9683, based on195d3105ec. The quote test checks the decoded provider request. After an explicit click into the composer the excerpt is[@Ref](maka://session/s_ref_1) TARGET_TOKEN_WORD. After selecting the word again and clicking Quote selection, the excerpt is exactlyTARGET_TOKEN_WORD.git diff --checkpassed.AI use
OpenAI Codex traced the focus and selection events, edited the Windows input handler and desktop fixture, ran the native tests, and drafted this PR.
Checklist
Does this PR entail a breaking change or persisted-data migration?
Does this PR entail a change in behavior?