kimi-code/packages/agent-core/test/loop
Haozhe 9f66ec416c
feat: harden LLM API fault tolerance against 429 and overload (#1530)
* feat(retry): harden LLM API fault tolerance against 429/overload

- retry more transient errors: 408/409/429/5xx/529, an embedded upstream
  status_code=429 in OpenAI Responses stream errors, and unclassified
  provider errors as a last-resort fallback
- honor server Retry-After (parsed into APIStatusError.retryAfterMs by the
  OpenAI and Anthropic providers); chatWithRetry prefers it over its backoff
- align app-level backoff with claude-code (500ms base, 32s cap, factor 2,
  up to 25% jitter) so high-attempt configs ride out multi-minute overload
- emit a turn.step.retrying meta line in -p --output-format stream-json
2026-07-10 15:47:12 +08:00
..
fixtures feat: pursue a goal autonomously (#270) 2026-06-02 22:52:23 +08:00
abort.e2e.test.ts fix(agent-core): surface user interruptions to the model instead of a neutral abort (#236) 2026-05-30 09:53:21 +08:00
api-shape.e2e.test.ts fix: require AgentSwarm to run alone (#643) 2026-06-11 13:58:35 +08:00
error-paths.e2e.test.ts refactor(agent-core): slim llm request log line (#190) 2026-05-29 13:36:34 +08:00
events.e2e.test.ts feat: record model response id in wire logs (#1349) 2026-07-03 17:15:04 +08:00
hooks.e2e.test.ts fix: require AgentSwarm to run alone (#643) 2026-06-11 13:58:35 +08:00
retry.test.ts feat: harden LLM API fault tolerance against 429 and overload (#1530) 2026-07-10 15:47:12 +08:00
streaming.e2e.test.ts Kimi For Coding 2026-05-22 15:54:50 +08:00
tool-args-parse.test.ts refactor(agent-core): align malformed tool args with schema validation (#1209) 2026-06-29 23:24:03 +08:00
tool-call.e2e.test.ts refactor: move tool-result metadata into a structured note side channel (#1437) 2026-07-07 11:40:27 +08:00
tool-exchange-fallback.e2e.test.ts feat: keep image-heavy sessions within provider request-size limits (#1508) 2026-07-09 18:05:14 +08:00
tool-scheduler.test.ts feat: rework permission decision policies (#26) 2026-05-27 20:07:24 +08:00
transcript.e2e.test.ts Kimi For Coding 2026-05-22 15:54:50 +08:00
turn-lifecycle.e2e.test.ts feat: remove default per-turn step limit of 1000 (#186) 2026-05-29 13:11:45 +08:00