Files
multica/server/pkg
David Zhang b3847b4172 MUL-5433: fix(agent/hermes): pin session id mid-flight for daemon resume (#6070)
* fix(agent/hermes): pin session id mid-flight for daemon resume

Hermes was the only ACP-backed agent that created a session without
emitting a running status carrying the session id. When the daemon
restarted or a task was cancelled mid-flight, PinTaskSession had nothing
to key on, so the resume pointer was lost and the task could not resume.

Emit MessageStatus+SessionID immediately after session create, matching
claude, codebuddy, codex, grok and qwen. The daemon already listens for
this (daemon.go MessageStatus -> PinTaskSession), so this small pin is
all Hermes needs.

See #4969 for the companion daemon/SQL cancel-salvage work.

Co-authored-by: multica-agent <github@multica.ai>

* test(agent): cover Hermes mid-flight session pin

Co-authored-by: multica-agent <github@multica.ai>

---------

Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: Eve <eve@multica-ai.local>
2026-07-29 14:58:01 +08:00
..