Repository navigation
Agent: Stop Return in the OAuth paste field from crashing the app - #1591
Merged
Merged
Conversation
The paste field's Enter handler ignored the text it was handed and confirm_oauth read the input back while gpui still held it for the key event. That read panics, and inside a macOS key callback the panic aborts the process. confirm_oauth now takes the redirected text: Enter passes its argument, the button reads the field.
The comment blamed an unreachable backend. The completion fails before any network call, because the test never began a sign-in.
matthewrball
marked this pull request as ready for review
November 17, 2026 22:12
AnthonyRonning
approved these changes
Nov 17, 2026
AnthonyRonning
added a commit
that referenced
this pull request
Nov 18, 2026
…app (#1635) The field's Enter handler called erase_local_store, which read the field back while gpui still held it for the key event. That read panics, and inside a macOS key callback the panic aborts the process. The handler now passes the text it is handed; the button and the Vim target still read the field. Same cause as the OAuth paste field fixed in #1591. Co-authored-by: Claude <[email protected]>
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.
What this PR does
Fixes #1632
Notes
confirm_oauthread the field back while gpui still held it for the key event. That read panics, and inside a macOS key callback the panic aborts the process.confirm_oauthnow takes the pasted text: Enter passes its argument, and the button reads the field.cannot read ui::text_input::TextInput while it is already being updated.SecretInput's submission event; its existing Enter tests pass.oauth_paste_enter_confirms_without_reentrant_field_accesspresses Return in the field, empty and with a URL. It panics without the fix.just ci-lintandcargo test -p maple-agent-app --lockedpass. Partial verification:just ci-testwas not run to the end here; on this Mac it fails 65 store and external-agent tests incrates/maple-agent, which this PR does not touch. The fix was not re-tried with a real sign-in.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.