mirror of
https://github.com/MoonshotAI/kimi-code.git
synced 2026-08-01 20:44:53 +00:00
* fix(agent-core-v2): keep invalidated OAuth flows observable during login invalidateFlows() deleted flows outright when the provider configuration changed, including terminal ones. That voided the TERMINAL_RETENTION_MS window and, worse, left the status guards in handleSuccess / finalizeAuthentication blind when the invalidation landed in the microtask gap after toolkit.login resolved: setTerminal then wrote 'authenticated' onto an orphaned state the client could never observe, so the login hung after a successful browser authorization. Transition affected pending flows to a visible 'cancelled' terminal status instead, mirroring abortExisting(). Also normalize the KIMI_CODE_BASE_URL env override at the source in kimiCodeBaseUrl(): provision persists it verbatim while the model refresh rewrites it normalized, and the deep-equal diff between the two shapes fired a spurious providers-changed event mid-login. * style(agent-core-v2): drop non-header comments from the oauth login fix * chore: cover agent-core-v2 in the oauth login fix changeset |
||
|---|---|---|
| .. | ||
| examples | ||
| src | ||
| test | ||
| CHANGELOG.md | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| tsdown.config.ts | ||
| vitest.config.ts | ||