kimi-code/packages
liruifengv f1208c8d72
feat(agent-core-v2): rework the title generation excerpts (#3109)
* feat(agent-core-v2): rework the title generation excerpts

- Rebalance the excerpt budgets toward the user's prompts (400 chars
  each) and trim the assistant segments (300) so titles follow the
  user's task instead of narrating the assistant's reply.
- Cap each prompt in the default user_prompts excerpt so one long
  paste no longer starves the remaining prompts.
- Compose the digest excerpt from the full conversation arc: every
  natural-language user prompt in the live window paired with its own
  turn's final assistant text, interleaved chronologically, with
  per-segment caps and a 3000-char total budget (middle turns elided).

* chore: scope the title changeset to agent-core-v2

* fix(agent-core-v2): dedupe digest prompts and elide whole turns

- Drop the redundant `| undefined` from the optional
  TitleDigestTurn.assistant per the monorepo optional-property
  convention.
- Deduplicate user messages by id when constructing digest turns, so a
  prompt already in the context and still active in the queue does not
  produce two turns.
- Elide the over-budget digest at whole-turn granularity, keeping each
  assistant line paired with its own user line.

* docs(agent-core-v2): describe the full-arc digest in the SessionTitleSource contract
2026-08-20 12:25:51 +08:00
..
acp-adapter ci: release packages (#2932) 2026-08-18 19:19:18 +08:00
acp-server refactor(agent-core-v2): replace defineOp/Model with Event2 dispatch and replayable states (#2909) 2026-08-17 17:38:50 +08:00
agent-core fix: fail fast on provider-filtered empty responses (#3101) 2026-08-20 11:55:26 +08:00
agent-core-v2 feat(agent-core-v2): rework the title generation excerpts (#3109) 2026-08-20 12:25:51 +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): rework the title generation excerpts (#3109) 2026-08-20 12:25:51 +08:00
klient feat(kimi-code): support two OAuth login endpoints (#2862) 2026-08-20 11:24:02 +08:00
kosong fix: fail fast on provider-filtered empty responses (#3101) 2026-08-20 11:55:26 +08:00
migration-legacy ci: release packages (#1767) 2026-07-16 18:54:29 +08:00
minidb test(minidb): deflake the evict-lru compaction-churn guard (#2892) 2026-08-13 21:00:56 +08:00
node-sdk feat(kimi-code): support two OAuth login endpoints (#2862) 2026-08-20 11:24:02 +08:00
oauth feat(kimi-code): support two OAuth login endpoints (#2862) 2026-08-20 11:24:02 +08:00
pi-tui ci: release packages (#2932) 2026-08-18 19:19:18 +08:00
protocol fix(kap-server): serve real session usage in snapshot and persist per-turn context readings (#3094) 2026-08-19 22:06:53 +08:00
telemetry feat(kimi-code): support two OAuth login endpoints (#2862) 2026-08-20 11:24:02 +08:00
transcript feat: project prompt attachments into the live transcript and clear the transcript goal on clear (#3088) 2026-08-19 18:38:21 +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