kimi-code/packages/agent-core/test
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
..
agent fix(agent-core): count validation-rejected tool calls toward the repeat breaker (#2313) 2026-07-28 18:39:26 +08:00
base/common feat(web): introduce Kimi web app and daemon gateway (#625) 2026-06-17 20:53:46 +08:00
config feat: add global default MCP server timeout configs (#2065) 2026-07-23 12:41:08 +08:00
di feat(web): introduce Kimi web app and daemon gateway (#625) 2026-06-17 20:53:46 +08:00
errors fix(kosong): fail fast on quota-exhausted 429 instead of retrying (#1857) 2026-07-28 14:35:12 +08:00
fixtures refactor(kaos): move Environment into kaos, slim package API (#147) 2026-05-28 16:50:10 +08:00
flags fix: allow obsolete experimental config entries (#584) 2026-06-09 17:00:48 +08:00
harness fix(kosong): fail fast on quota-exhausted 429 instead of retrying (#1857) 2026-07-28 14:35:12 +08:00
hooks test: cut slow suite runtimes and isolate experimental flag from host env (#1595) 2026-07-13 17:45:22 +08:00
logging fix: preserve the crash error in diagnostic logs on unexpected exit (#1757) 2026-07-16 01:26:27 +08:00
loop fix(kosong): fail fast on quota-exhausted 429 instead of retrying (#1857) 2026-07-28 14:35:12 +08:00
mcp feat: add global default MCP server timeout configs (#2065) 2026-07-23 12:41:08 +08:00
plugin feat: support plugin slash commands (#1204) 2026-06-30 19:38:01 +08:00
profile feat(agent-core): align coder subagent tools with v2 and drain background tasks (#1776) 2026-07-16 17:14:53 +08:00
rpc fix(agent-core): scope [image] config limits to the owning core (#1521) 2026-07-09 20:55:52 +08:00
services fix: consume the model metadata declared by the models.dev catalog (#2015) 2026-07-22 01:23:31 +08:00
session fix(tui): steer user messages into the running turn while a goal is active (#2153) 2026-07-25 02:12:24 +08:00
skill feat: add check-kimi-code-docs builtin skill (#1727) 2026-07-15 11:42:47 +08:00
tools feat: send prompt-attached videos directly with the prompt (#1999) 2026-07-22 13:46:00 +08:00
utils feat(agent-core): progressive tool disclosure via select_tools (#1369) 2026-07-06 15:51:08 +08:00
prompt-placeholders.test.ts feat(agent-core): rework compaction to keep only user prompts and summary (#1214) 2026-07-01 01:17:30 +08:00