Repository navigation
fix(desktop): new tabs the agent opens from links no longer steal composer focus #29023
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
+113
−40
Closed
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
08f0e95
test(desktop): reproduce agent-clicked _blank links opening in the fo…
juliusmarminge 77abaf6
fix(desktop): new-tab links the agent clicked open in the background
juliusmarminge 638aac8
Merge remote-tracking branch 'origin/main' into fix/issue-29009
juliusmarminge 2d2b819
fix(desktop): a person's new-tab click after agent input stays in the…
juliusmarminge 3d102d0
fix(desktop): tell a person's click from the agent's by the guest's f…
juliusmarminge ae2972e
docs(desktop): name the focus restore the new-tab check relies on
juliusmarminge 6c09b17
Merge remote-tracking branch 'origin/main' into fix/issue-29009
juliusmarminge fdd40f4
Merge remote-tracking branch 'origin/main' into pr-29023
juliusmarminge 5cf02b3
Merge remote-tracking branch 'origin/main' into fix/issue-29009
juliusmarminge c972440
Merge remote-tracking branch 'origin/main' into fix/issue-29009
juliusmarminge 4d26bde
fix(desktop): a person's click through a viewer is not the agent's input
juliusmarminge 0e6fea6
fix(desktop): a viewer's click right after the agent's opens new tabs…
juliusmarminge 241bfdb
fix(desktop): a viewer hovering the stream keeps the agent's input wi…
juliusmarminge File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Script executed:
git diff 43915a4064b341cd040f24c1b906d87222e403de 241bfdb12b463f9643005f96fe3f7375aed6e837 -- apps/desktop/src/preview/DesktopBrowserHost.ts apps/desktop/src/preview/Manager.ts rg -n 'rawKeyDown|dispatchKeyEvent|agentActedRecently|AGENT_INPUT_METHOD' apps/desktop/srcRepository: pingdotgg/t3code
Length of output: 8006
Script executed:
Repository: pingdotgg/t3code
Length of output: 22268
Script executed:
Repository: pingdotgg/t3code
Length of output: 18809
Script executed:
Repository: pingdotgg/t3code
Length of output: 35711
Script executed:
Repository: pingdotgg/t3code
Length of output: 13098
Script executed:
Repository: pingdotgg/t3code
Length of output: 9972
Script executed:
Repository: pingdotgg/t3code
Length of output: 10090
Clear agent attribution on streamed key presses
If a viewer presses Enter on a focused new-tab link within five seconds of agent input,
keyDownleaves the agent timestamp intact. When the desktop guest has no focused frame, the manager can open the person’s foreground tab in the background.Clear attribution for streamed
keyDownandrawKeyDownevents. KeepkeyUpunchanged because viewer disconnect cleanup also sends it.Suggested fix
Committable suggestion