Commit graph

3 commits

Author SHA1 Message Date
Petr Houška
96cb327b8e fix(coding-agent): wait for a started OAuth refresh to be saved before exit
Problem: the RPC startup catalog refresh also refreshes an expired OAuth
credential. When the process exited after the token request went out but
before the new token was written, the provider had already spent the
old refresh token and auth.json kept only it, so the next request failed
with invalid_grant.

RuntimeCredentials now tracks modifications whose update function has
started (a modification still waiting for the auth.json lock has sent
nothing). AgentSessionRuntime.dispose() waits up to 20 s for them, so
RPC, print, and interactive exits keep the rotated token.

closes #11692
2026-11-05 00:21:57 +01:00
Mario Zechner
fed6009cc9 fix(coding-agent): make model refresh cancellation caller-owned
Add generation-safe catalog publication, cancellable auth and storage operations, locally consistent credential mutations, and cache-first interactive model flows.
2026-08-04 00:03:52 +02:00
Mario Zechner
9993c96907 feat(coding-agent): replace model registry with model runtime
Move provider auth and OAuth flows onto pi-ai Models, compose models.json and extension overlays through ModelRuntime, and retain ModelRegistry as an extension compatibility facade.
2026-07-14 17:48:45 +02:00