fix(coding-agent): add required messages field to a loader-recovery agent_end fixture

The real agent_end event always carries messages: AgentMessage[], but
this fixture used a bare { type: "agent_end" }. That was harmless
while sendCompletionNotification() ignored its event argument, but the
prior commit made it read event.messages, so this fixture now crashes
#finishAgentEnd with a TypeError. Add the missing field.
This commit is contained in:
Mathews-Tom
2026-07-06 04:18:41 +05:30
parent f386b0107c
commit 9de67a6dc6
@@ -96,7 +96,7 @@ function createContext(options: { terminalProgress?: boolean } = {}) {
}
const AGENT_START = { type: "agent_start" } as unknown as AgentSessionEvent;
const AGENT_END = { type: "agent_end" } as unknown as AgentSessionEvent;
const AGENT_END = { type: "agent_end", messages: [] } as unknown as AgentSessionEvent;
const COMPACTION_START = {
type: "auto_compaction_start",
reason: "overflow",