mirror of
https://github.com/MoonshotAI/kimi-code.git
synced 2026-07-20 22:54:26 +00:00
Map OAuth token-fetch failures to distinct public error codes instead of collapsing them all to auth.login_required: - missing/revoked tokens or 401/403 from the refresh endpoint -> auth.login_required - transport failures and 429/5xx after internal retries -> provider.connection_error - anything else is rethrown as-is (surfaces as internal) rather than guessed The refresh helper already retries internally, so the agent loop does not re-retry these. Both the managed provider and the standalone SDK provider share the same mapping. |
||
|---|---|---|
| .. | ||
| fixtures | ||
| abort.e2e.test.ts | ||
| api-shape.e2e.test.ts | ||
| error-paths.e2e.test.ts | ||
| events.e2e.test.ts | ||
| hooks.e2e.test.ts | ||
| retry.test.ts | ||
| streaming.e2e.test.ts | ||
| tool-call.e2e.test.ts | ||
| tool-scheduler.test.ts | ||
| transcript.e2e.test.ts | ||
| turn-lifecycle.e2e.test.ts | ||