kimi-code/packages/agent-core/test/agent
STAR-QUAKE de0ba9d065
fix(agent-core): count validation-rejected tool calls toward the repeat breaker (#2313)
* fix(agent-core): count validation-rejected tool calls toward the repeat breaker

Args-rejected calls returned before prepareToolExecution, so the breaker
never counted them and the model could re-issue the same invalid call
until maxSteps. Register them in finalizeToolResult so reminders fire at
3/5/8 and the turn force-stops at 12.

* fix(agent-core): key parse-failed repeats on raw argument text

Malformed JSON arguments normalize to {} on parse failure, which keyed
every malformed-but-different attempt identically and could force-stop a
turn whose calls were evolving rather than identical. Register skipped
calls on the raw arguments text when parsing failed.

---------

Co-authored-by: fengchenchen <fengchenchen@moonshot.ai>
2026-07-28 18:39:26 +08:00
..
background feat(config): add env overrides for loop control and background task limits (#1993) 2026-07-21 19:49:00 +08:00
compaction fix: gate always-thinking inference to OpenAI wires, plus catalog review follow-ups (#2036) 2026-07-22 13:43:10 +08:00
config fix: gate always-thinking inference to OpenAI wires, plus catalog review follow-ups (#2036) 2026-07-22 13:43:10 +08:00
context fix(agent-core): drop vacuous assistant messages that permanently wedge sessions (#1968) 2026-07-21 11:04:55 +08:00
cron docs(cron): drop references to the non-existent kimi resume command (#2050) 2026-07-22 16:59:08 +08:00
harness feat: attach trace_id to telemetry events (#1724) 2026-07-16 09:14:12 +08:00
injection fix: clarify goal blocked audit guidance (#1481) 2026-07-07 22:29:40 +08:00
permission feat(goal): support guided goal authoring (#839) 2026-06-18 18:48:23 +08:00
records feat: support custom agent files (#1735) 2026-07-21 15:01:43 +08:00
turn fix(agent-core): count validation-rejected tool calls toward the repeat breaker (#2313) 2026-07-28 18:39:26 +08:00
basic.test.ts feat: send prompt-attached videos directly with the prompt (#1999) 2026-07-22 13:46:00 +08:00
bg-idle-notification-repro.test.ts fix: preserve long tool output (#1062) 2026-06-24 14:42:11 +08:00
config-state.test.ts fix: echo thinking under the reasoning field the endpoint actually uses (#2104) 2026-07-23 21:15:00 +08:00
config.test.ts fix: resolve and synchronize thinking effort (#1625) 2026-07-14 16:37:03 +08:00
context.test.ts refactor: move tool-result metadata into a structured note side channel (#1437) 2026-07-07 11:40:27 +08:00
dynamic-tools.test.ts feat(agent-core): progressive tool disclosure via select_tools (#1369) 2026-07-06 15:51:08 +08:00
goal-outcome.test.ts fix: polish goal lifecycle messaging (#555) 2026-06-09 11:47:00 +08:00
goal.test.ts fix(agent-core): harden goal-mode budget and outcome flow (#1456) 2026-07-07 15:23:57 +08:00
image-caption-injection.test.ts fix(agent-core): route image-compression captions through hidden system reminders (#1348) 2026-07-03 16:21:10 +08:00
kosong-llm.test.ts feat: record model response id in wire logs (#1349) 2026-07-03 17:15:04 +08:00
llm-request-recorder.test.ts fix: resolve and synchronize thinking effort (#1625) 2026-07-14 16:37:03 +08:00
permission.test.ts feat: attach trace_id to telemetry events (#1724) 2026-07-16 09:14:12 +08:00
plan.test.ts feat: auto-background timed-out foreground bash commands (#1591) 2026-07-13 21:08:21 +08:00
question.test.ts feat(agent-core): ModelProvider interface and SingleModelProvider (#167) 2026-05-28 22:27:09 +08:00
resume.test.ts fix(tui): keep long sessions responsive and bound resumed history (#1976) 2026-07-21 15:20:12 +08:00
skill-prompt.test.ts fix: surface skill directory in the loaded-skill context block (#785) 2026-06-15 22:29:00 +08:00
skill-tool-manager.test.ts fix: surface skill directory in the loaded-skill context block (#785) 2026-06-15 22:29:00 +08:00
tool-result-render.test.ts refactor: move tool-result metadata into a structured note side channel (#1437) 2026-07-07 11:40:27 +08:00
tool-select.e2e.test.ts feat(agent-core): defer registered user tools (#2119) 2026-07-24 17:48:36 +08:00
tool.test.ts fix(agent-core): re-register builtin tools when provider resolves late (#1688) 2026-07-14 16:37:17 +08:00
turn.test.ts fix(agent-core): count validation-rejected tool calls toward the repeat breaker (#2313) 2026-07-28 18:39:26 +08:00
usage.test.ts Kimi For Coding 2026-05-22 15:54:50 +08:00