kimi-code/packages/agent-core/test/loop
qer 3da4daeade
fix(kosong): retry when a response stream is terminated mid-flight (#201)
A mid-stream SSE drop surfaces as a raw undici `TypeError: terminated`, which was classified as a non-retryable generic error and failed the turn on the first attempt. Route raw transport-layer errors through the connection-error heuristic so a dropped stream becomes a retryable APIConnectionError and is retried transparently. User aborts (ESC) are unaffected — the retry loop checks the abort signal before retrying.

Related to #149.
2026-05-29 15:18:55 +08:00
..
fixtures feat: rework permission decision policies (#26) 2026-05-27 20:07:24 +08:00
abort.e2e.test.ts feat: rework permission decision policies (#26) 2026-05-27 20:07:24 +08:00
api-shape.e2e.test.ts feat: rework permission decision policies (#26) 2026-05-27 20:07:24 +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: rework permission decision policies (#26) 2026-05-27 20:07:24 +08:00
hooks.e2e.test.ts Kimi For Coding 2026-05-22 15:54:50 +08:00
retry.test.ts fix(kosong): retry when a response stream is terminated mid-flight (#201) 2026-05-29 15:18:55 +08:00
streaming.e2e.test.ts Kimi For Coding 2026-05-22 15:54:50 +08:00
tool-call.e2e.test.ts feat: rework permission decision policies (#26) 2026-05-27 20:07:24 +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