fix focus stealing#12833
Conversation
|
I'm starting a first review of this pull request. You can view the conversation on Warp. I completed the review and no human review was requested for this pull request. Comment Powered by Oz |
There was a problem hiding this comment.
Overview
This PR prevents asynchronous AI/tool focus reconciliation from stealing focus away from the queued-prompt inline editor, and adds a focused regression test for terminal focus redetermination while a queued prompt is being edited.
Concerns
No blocking correctness, security, or spec-drift concerns found. The PR includes visual evidence for the user-facing behavior change.
Verdict
Found: 0 critical, 0 important, 0 suggestions
Approve
Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).
Powered by Oz
0075b29 to
ff8a260
Compare

Description
There was an issue where, whenever the agent executed a tool call, the queued prompt editor would close. This was because the editor closes on-blur, but there's some refocus events that happen in the course of a normal conversation that we need to explicitly ignore (the regular input already does this).
Testing
./script/runScreenshots / Videos
https://www.loom.com/share/f43ace3fd18e4239a24f114d53443761
Agent Mode