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:
+1
-1
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user