Repository navigation
Notice an agent that signs in again in the connect dialog - #4960
Merged
Merged
Conversation
The connect dialog said Waiting for your agent to sign in until the list gained a connection it had not held when the dialog opened. Allowing an app that is already connected changes its one live connection instead of adding another, so an agent that signed in a second time (a reinstall, a new machine, a refreshed grant) left the dialog waiting for good. Found by running the real Claude Code login with the dialog open. The list already carries when each connection was last allowed; the dialog now takes the baseline as each connection's `updatedAt`, so one that was made or allowed again since counts and one merely listed again does not. Only values the server wrote are compared, so a clock that is off cannot change the answer. A second flaw hid behind the first: the baseline came from the first fresh answer, which arrives late when the page sits behind the terminal, and by then it already held the sign-in being waited for. The dialog now reads the list when it opens whatever the cache holds, and keeps polling while the page is in the background.
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
The connect dialog (#4958) stayed on Waiting for your agent to sign in… for good when the agent had been connected before. Found by running the real Claude Code login with the dialog open.
updatedAt, which the consent sets on every allow, even for the same access). The dialog's baseline is now each connection'supdatedAt: one that was made or allowed again since counts, one merely listed again does not. Only values the server wrote are compared, so a clock that is off cannot change the answer.refetchOnMount: 'always'), and keeps polling while the page is in the background.Proof
claude.ai) against a real provider: with the dialog open and its page behind the agent's tab,claude mcp login talecompleted and the dialog changed from Waiting for your agent to sign in… to Connected: Claude Code, its prompt to Try this first. Before the fix the same run left it waiting while Claude Code reported✔ Connected.oxfmt --check,lint:links,lint:manual,lint:conflicts, knip, oxlint (type-aware) and both typechecks; shared 974, platform server + pii 89 114, platform UI 8 185, the two changed browser files 36, docs 716.SET-F89now holds the re-sign-in case.Not here
Nothing else changes: the type gains
updatedAt, which the list endpoint already sent.