fix: address the four suppressed findings from review round 20 (#2144)
Copilot reported "no new comments" again, with four real findings in its suppressed block. - The web in-flight lock was global, so a pending clear for server A silently swallowed a click on server B's — even though the callback explicitly supports clearing a non-active server. Keyed by server id now. - `else if (!isActive)` skipped the resume-snapshot cleanup when the target IS active but has no client yet, which is reachable while a session is being built or torn down. The clear then emptied storage and left stale OAuth recovery state pointing at credentials that no longer existed. - `revocationAuthMethods` returned `[]` for an omitted `revocation_endpoint_auth_methods_supported`, which does not enforce RFC 8414's default: an empty list means "the metadata said nothing" to `selectClientAuthMethod`, which then honors the registration's own `token_endpoint_auth_method`. The default is named literally now. - The `v8 ignore` on the CLI budget branch was wrong, and the challenge to it was right: an injected `budgetMs` of zero reaches it directly, through a seam I had added myself the round before. Removed, and covered by a test that asserts no request is made and the unattempted key is reported. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0177mPHAdECD18nLLCTwR5rh Signed-off-by: cliffhall <cliff@futurescale.com>
This commit is contained in:
parent
579a3eeeb9
commit
1f2e3e1744
1 changed files with 67 additions and 28 deletions
|
|
@ -1304,7 +1304,13 @@ export function useOAuthRecovery({
|
|||
finalizeExplicitDisconnect();
|
||||
}
|
||||
}
|
||||
} else if (!isActive) {
|
||||
} else if (!isActive || stillTargetsActiveSession()) {
|
||||
// No client to disconnect — either this is a stored-only clear, or the
|
||||
// active session has none yet (it is being built or torn down). Either
|
||||
// way the resume snapshot is stale and must go; skipping it would leave
|
||||
// OAuth recovery state pointing at credentials that no longer exist.
|
||||
// Guarded so a clear whose session has moved on still publishes
|
||||
// nothing.
|
||||
clearOAuthResumeOnExplicitDisconnect();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue