Skip to content

CL-8988: refresh OAuth credential before continuation infers - #1208

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-8988-oauth-refresh
Sep 29, 2026
Merged

TheGreatAxios merged 1 commit into
mainfrom
cl-8988-oauth-refresh

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Continuation infers run after tool results land, possibly long after the attempt-start refresh, so a token expiring mid-run 401s the next infer. This wraps the reactor director at the run.ts host layer: after the director returns an infer action, the OAuth credential is ensured fresh (expiry-aware, single-flight) and pushed to the live agent before the reactor executes the infer. Directors stay pure; non-infer decisions pass through untouched.

Verification: lint, typecheck, dead-exports, build, and full suite (8607 pass, 0 fail) green in the worktree.

Fixes CL-8988

Continuations run after tool results land, possibly long after the
attempt-start refresh, so an expired token 401s the next infer.
@linear-code

linear-code Bot commented Sep 28, 2026

Copy link
Copy Markdown

CL-8988

@TheGreatAxios
TheGreatAxios merged commit 8454d5e into main Sep 29, 2026
13 checks passed
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.

1 participant