fix(connect): refresh authorization without disconnecting #9582
Mergedmaria-rcksmerged 4 commits into
main fromrefs/pull/9582/headmerged by maria-rcks View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:M
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
- @@ -365,0 +397,21 @@397+ Effect.gen(function* () {398+ const connectionScope = yield* Scope.fork(parentScope, "sequential");399+ const established = yield* Effect.exit(400+ restore(401+ establishTracedConnection(402+ attempt,403+ generation,404+ lastFailure,405+ pendingRetry,406+ publishProgress,407+ ).pipe(Scope.provide(connectionScope)),408+ ),409+ );410+ if (Exit.isFailure(established)) {411+ yield* Scope.close(connectionScope, Exit.void).pipe(Effect.ignore);412+ return yield* Effect.failCause(established.cause);413+ }414+ return { ...established.value, scope: connectionScope } satisfies ScopedConnection;415+ }),416+ );417+ });
maria-rcks merged this39abb9d
maria-rcks closed this
Sign in to join this conversation.


Approvability#
Verdict: Not approved
Macroscope's review found this PR not approvable — The production connection supervisor now performs concurrent DPoP authorization refreshes and session handoffs with new retry, timeout, and resource-lifecycle behavior. Because this materially changes an existing authorization-sensitive runtime path, human review is warranted.
You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).