kimi-code/packages
Haozhe 2d874fbd73
fix(agent-core-v2): surface provider auth errors and align agent copy with v1 (#1631)
* fix(agent-core-v2): surface provider rejection on post-refresh 401

- map a 401 that survives forced token refresh to PROVIDER_AUTH_ERROR
  carrying the provider's sanitized message, instead of a misleading
  AUTH_LOGIN_REQUIRED re-login prompt
- propagate provider auth errors through full compaction instead of
  wrapping them as compaction failure
- export sanitizeStatusErrorMessage for reuse

* fix(agent-core-v2): align repeat-reminder and AskUserQuestion copy with v1

- rewrite repeated tool call reminders to redirect instead of prohibit (port of v1 #1518)
- simplify makeReminderText2 to (repeatCount), no longer echoing tool name and args
- treat dismissed AskUserQuestion as no answer, not the recommended pick (port of v1 #1550)
- update toolDedupe test assertions and regenerate affected wire snapshots

* chore: add changeset for v2 reminder and question copy alignment

* fix(kap-server): drain in-flight heartbeat writes before unlinking the instance file

- count writes that passed the released check and await them in release()
  so their atomic rename cannot recreate the file after unlink
- harden the heartbeat test: 1ms cadence plus a post-release re-check
  catches the recreate-after-unlink race (verified failing on old code)

* docs(agent-core-v2): move toProviderAuthError rationale to the file header

Address Codex review: agent-core-v2 keeps comments in the top-of-file
header only, never beside functions
2026-07-13 23:52:22 +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(server): default to kap-server and remove the v1 server package (#1617) 2026-07-13 21:43:45 +08:00
agent-core-v2 fix(agent-core-v2): surface provider auth errors and align agent copy with v1 (#1631) 2026-07-13 23:52:22 +08:00
kaos chore: drop #/ import array fallbacks and custom resolution plugins (#1594) 2026-07-13 16:37:35 +08:00
kap-server fix(agent-core-v2): surface provider auth errors and align agent copy with v1 (#1631) 2026-07-13 23:52:22 +08:00
klient feat(agent-core-v2): gate image formats and add media recovery resends (#1626) 2026-07-13 22:11:46 +08:00
kosong chore: drop #/ import array fallbacks and custom resolution plugins (#1594) 2026-07-13 16:37:35 +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 fix: send the product User-Agent on provider registry and catalog fetches (#1597) 2026-07-13 17:45:34 +08:00
oauth fix: send the product User-Agent on provider registry and catalog fetches (#1597) 2026-07-13 17:45:34 +08:00
pi-tui chore: drop #/ import array fallbacks and custom resolution plugins (#1594) 2026-07-13 16:37:35 +08:00
protocol fix: align v1 protocol handshake and tool_result media passthrough (#1630) 2026-07-13 23:13:48 +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