File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,9 +50,9 @@ export function useMcpOauthPopup({ workspaceId }: UseMcpOauthPopupProps) {
5050
5151 // Per-server count of live authorization attempts; a row shows "Connecting…" / "Reopen
5252 // authorization" while its count > 0. Reference counting (not a boolean set) keeps the label
53- // deterministic across concurrent attempts: a reopen increments before the superseded flow
54- // decrements, so the count never dips to 0 mid-reopen (no flicker), and every attempt clears
55- // exactly once (never stuck).
53+ // deterministic across concurrent attempts: a reopen retires the superseded flow and starts
54+ // its own count within one batched update (no flicker), and every attempt clears exactly
55+ // once (never stuck).
5656 const [ connectingCounts , setConnectingCounts ] = useState < Map < string , number > > ( ( ) => new Map ( ) )
5757 // OAuth `state` nonce -> { serverId, safety timeout }. `state` keys the BroadcastChannel
5858 // correlation: the callback echoes it on every result (even failures that resolve no serverId),
You can’t perform that action at this time.
0 commit comments