multica/packages
Jiang Bohan c49ab1fee4 fix(heartbeat): use internal run to hide heartbeat from chat history
The heartbeat runner used agent.write() (normal write), which persisted
both the heartbeat prompt and HEARTBEAT_OK response as regular messages
visible in the UI chat history.

Switch to runInternalForResult() — a new AsyncAgent method that runs
via runInternal() (messages marked internal: true, rolled back from
in-memory state). This hides both the heartbeat prompt and response
from the UI entirely, while still persisting to JSONL for diagnostics.

The previous commit's event-stream heartbeat ACK filter remains as a
defense-in-depth layer for edge cases.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-11 19:41:57 +08:00
..
core fix(heartbeat): use internal run to hide heartbeat from chat history 2026-02-11 19:41:57 +08:00
hooks refactor: restructure to monorepo architecture 2026-02-10 18:00:23 +08:00
sdk refactor: restructure to monorepo architecture 2026-02-10 18:00:23 +08:00
store refactor: restructure to monorepo architecture 2026-02-10 18:00:23 +08:00
types refactor: restructure to monorepo architecture 2026-02-10 18:00:23 +08:00
ui feat(ui): show task context for sessions_spawn in chat UI 2026-02-11 16:59:16 +08:00
utils refactor: restructure to monorepo architecture 2026-02-10 18:00:23 +08:00