kimi-code/packages
qer 72f425e18d
fix(agent-core-v2): make Gemini tool call ids unique across turns (#1730)
* fix(agent-core-v2): make Gemini tool call ids unique across turns

* fix(kosong): recover tool names from entropy-suffixed Gemini call ids

The orphan tool-message fallback in toolCallIdToName stripped only one
trailing "_<suffix>" segment, so with the new
"{tool_name}_{upstream_id}_{entropy}" id shape it returned
"AgentSwarm_0" instead of "AgentSwarm" once the preceding assistant
call had been compacted away. Strip the fixed 8-hex entropy suffix
first, then the upstream id segment, in both the kosong and
agent-core-v2 providers. Also drop the inline implementation comment
that agent-core-v2 forbids outside the file header.

---------

Co-authored-by: haozhe.yang <yanghaozhe@moonshot.ai>
2026-07-15 17:47:53 +08:00
..
acp-adapter chore: drop #/ import array fallbacks and custom resolution plugins (#1594) 2026-07-13 16:37:35 +08:00
agent-core feat: raise default per-step LLM retry budget to 10 attempts (#1740) 2026-07-15 15:24:17 +08:00
agent-core-v2 fix(agent-core-v2): make Gemini tool call ids unique across turns (#1730) 2026-07-15 17:47:53 +08:00
kaos chore: drop #/ import array fallbacks and custom resolution plugins (#1594) 2026-07-13 16:37:35 +08:00
kap-server refactor(agent-core-v2): drop the @moonshot-ai/protocol dependency (#1745) 2026-07-15 16:03:19 +08:00
klient test(klient): add real-server smoke coverage (#1713) 2026-07-15 15:24:36 +08:00
kosong fix(agent-core-v2): make Gemini tool call ids unique across turns (#1730) 2026-07-15 17:47:53 +08:00
migration-legacy chore: drop #/ import array fallbacks and custom resolution plugins (#1594) 2026-07-13 16:37:35 +08:00
minidb test: cut slow suite runtimes and isolate experimental flag from host env (#1595) 2026-07-13 17:45:22 +08:00
node-sdk feat(agent-core): default print mode to steer with unbounded limits (#1722) 2026-07-15 11:11:00 +08:00
oauth fix(agent-core-v2): keep invalidated OAuth flows observable during login (#1663) 2026-07-14 12:16:28 +08:00
pi-tui chore: drop #/ import array fallbacks and custom resolution plugins (#1594) 2026-07-13 16:37:35 +08:00
protocol fix(agent-core-v2): reject subagent goals (#1697) 2026-07-14 23:30:30 +08:00
server-e2e fix: align v1 protocol handshake and tool_result media passthrough (#1630) 2026-07-13 23:13:48 +08:00
telemetry chore: drop #/ import array fallbacks and custom resolution plugins (#1594) 2026-07-13 16:37:35 +08:00