kimi-code/apps/kimi-web/src
Haozhe 0303b82c3e
fix: align v1 protocol handshake and tool_result media passthrough (#1630)
* fix(protocol): make server_hello heartbeat_ms optional

kap-server dropped the server-initiated WS heartbeat and no longer emits
heartbeat_ms in server_hello, but the published v1 schema still required
it, so spec-compliant clients rejected the handshake before subscribing.

- mark heartbeat_ms optional in serverHelloPayloadSchema (advisory only)
- add a ws-control test for a server_hello without heartbeat_ms
- align kimi-web WireServerHello and the server-e2e handshake assertion

* fix(agent-core-v2): pass media parts through tool_result projection

- keep raw kosong content-part array for tool results carrying
  image/video/audio parts instead of flattening to text
- restore ReadMediaFile media rendering after session reload/resume

* chore: add changeset for optional server_hello heartbeat_ms

* docs(agent-core-v2): move tool_result media rationale to module header

Per the agent-core-v2 comment conventions, comments live solely in the
top-of-file block — move the media-passthrough rationale out of the
buildProtocolContent JSDoc into the module header.
2026-07-13 23:13:48 +08:00
..
api fix: align v1 protocol handshake and tool_result media passthrough (#1630) 2026-07-13 23:13:48 +08:00
components feat(server): default to kap-server and remove the v1 server package (#1617) 2026-07-13 21:43:45 +08:00
composables feat(server): default to kap-server and remove the v1 server package (#1617) 2026-07-13 21:43:45 +08:00
debug feat(web): redesign web UI and add design system (#1258) 2026-07-01 20:47:12 +08:00
i18n chore(web): drop the /help, /model, /provider, and /permission slash commands (#1615) 2026-07-13 20:52:19 +08:00
icons/kimi style(web): polish the session sidebar (#1519) 2026-07-09 19:39:20 +08:00
lib fix(web): dedupe optimistic user message against snapshot resync (#1620) 2026-07-13 21:54:08 +08:00
views feat(web): cap markdown table column width at 700px (#1587) 2026-07-13 13:35:07 +08:00
App.vue chore(web): drop the /help, /model, /provider, and /permission slash commands (#1615) 2026-07-13 20:52:19 +08:00
env.d.ts feat(server): default to kap-server and remove the v1 server package (#1617) 2026-07-13 21:43:45 +08:00
main.ts style(web): polish web UI typography and controls (#1502) 2026-07-09 14:55:58 +08:00
style.css feat(web): cap markdown table column width at 700px (#1587) 2026-07-13 13:35:07 +08:00
types.ts feat(web): redesign cron reminder as a message bubble (#1480) 2026-07-08 13:42:22 +08:00