You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lua/eca/state.lua around line 106-108 (handler for chat/contentReceived)
Symptom
self.mediator:id() returns subagent chatId (subagent-toolu_...) instead of parent chat chatId.
Why
State updates id from any incoming chat/contentReceived params.chatId. Subagent messages carry their own chatId AND a parentChatId field. Parent's chatId gets overwritten when the subagent emits its first message.
Fix
Skip the id update when the message has parentChatId field present.
Impact
chat/promptStop on parent may target subagent (mostly harmless — correct behavior by accident)
Stale subagent chatId after subagent finishes could send messages to dead chat
Breaks assumptions in any code that relies on mediator:id() returning parent chatId
Activity