kimi-code/packages
7Sageer fe3cdae5f8
fix(agent-core-v2): drop interrupted thinking-only assistant messages at step settle (#2819)
* fix(agent-core-v2): drop interrupted thinking-only assistant messages at settle

A turn interrupted while the model is still streaming thinking leaves the
open assistant holding only an unsigned thinking fragment. The fold used
to seal it into history because a non-empty thinking block is not vacuous;
on OpenAI-compatible providers the serialized message then carries neither
content nor tool_calls, and strict gateways reject every later request
with a 400 (#1404). Treat unsigned-thinking-only content as unsendable at
settle so the fold drops the message instead — replaying the records of
an already bricked session repairs it.

* fix(agent-core-v2): preserve reasoning-only assistant history

---------

Signed-off-by: 7Sageer <sag77r@hotmail.com>
2026-08-12 22:17:02 +08:00
..
acp-adapter ci: release packages (#2710) 2026-08-12 11:45:35 +08:00
acp-server feat(kimi-code): show live background agent activity in the /tasks panel (#2816) 2026-08-11 21:32:39 +08:00
agent-core fix(agent-core): only discover the root SKILL.md for plugin skills fallback (#2847) 2026-08-12 14:24:48 +08:00
agent-core-v2 fix(agent-core-v2): drop interrupted thinking-only assistant messages at step settle (#2819) 2026-08-12 22:17:02 +08:00
kaos chore: drop #/ import array fallbacks and custom resolution plugins (#1594) 2026-07-13 16:37:35 +08:00
kap-server feat(agent-core-v2): keep session updatedAt stable across meta management writes (#2815) 2026-08-12 13:40:26 +08:00
klient feat(agent-core-v2): keep session updatedAt stable across meta management writes (#2815) 2026-08-12 13:40:26 +08:00
kosong Revert "fix(kosong): match Kimi's standalone "Unsupported image." rejection (…" (#2368) 2026-07-29 20:56:41 +08:00
migration-legacy ci: release packages (#1767) 2026-07-16 18:54:29 +08:00
minidb feat: isolate the full-text search index from the session index and the main thread (#2701) 2026-08-07 07:38:16 +08:00
node-sdk refactor(agent-core-v2): unify model-facing reminder scheduling (#2623) 2026-08-12 13:52:08 +08:00
oauth feat(agent-core-v2): add custom agent identity (#2573) 2026-08-04 22:35:15 +08:00
pi-tui feat(kimi-code): re-baseline pi-tui on upstream v0.84.1 and add fullscreen tui_mode (#2830) 2026-08-12 18:23:41 +08:00
protocol feat(agent-core-v2): keep session updatedAt stable across meta management writes (#2815) 2026-08-12 13:40:26 +08:00
telemetry fix: close two silent-exit vectors around unhandled rejections (#1758) 2026-07-16 02:14:14 +08:00
transcript docs: slim root AGENTS.md, move deep package docs to package guides (#2626) 2026-08-05 13:43:33 +08:00
tree-sitter-bash feat(tree-sitter-bash): add a pure-TypeScript bash parser and an agent-core-v2 bashParser service (#2016) 2026-07-28 14:29:08 +08:00