Skip to content

test(mecated): fire the MCP login callback after the state is recorded - #2346

Merged
jhrozek merged 1 commit into
mainfrom
fix/mecated-login-test-callback-race
Oct 15, 2026
Merged

jhrozek merged 1 commit into
mainfrom
fix/mecated-login-test-callback-race

Conversation

@jhrozek

@jhrozek jhrozek commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

The test sent its callback before present() recorded the expected state, so under load the handler rejected it as a state mismatch and the flow timed out. Production options run NoBrowser, so fire the callback from URLWriter, which present writes only after setting the state, as a real browser would.

Co-Authored-By: mecatl [email protected]

The test sent its callback before present() recorded the expected state, so under load the handler rejected it as a state mismatch and the flow timed out. Production options run NoBrowser, so fire the callback from URLWriter, which present writes only after setting the state, as a real browser would.

Co-Authored-By: mecatl <[email protected]>
@jhrozek
jhrozek merged commit 6bbbced into main Oct 15, 2026
62 of 64 checks passed
@jhrozek
jhrozek deleted the fix/mecated-login-test-callback-race branch October 15, 2026 08:05
@toolhive-release-app toolhive-release-app Bot mentioned this pull request Oct 20, 2026
2 tasks
@jbeda jbeda mentioned this pull request Oct 31, 2026
10 of 14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants