Files
plugins/packages
yetone c64f555ebd cline 0.1.1: magpie renews the sign-in ahead of time through auth.refresh
auth.refresh with refreshLead 10 minutes (in-fetch: 5). It spends the
refresh token under the same lock as a request's refresh and records what
each refresh gave, so the two never spend one token twice. Cline refusing
the refresh token is signIn "expired"; anything else throws and is retried.

The check before each request stays for OpenCode, which doesn't call the
hook (magpie 0.1.684+ does). refresh.test.mjs fails without the change;
HOME=$(mktemp -d) bun test passes (396 across the repo).
2026-10-03 12:07:22 +08:00
..