|
@@ -47,8 +47,7 @@ function assertCompleteCordisLifecycle(events: readonly SessionEvent[]): void {
|
|
|
(event): event is Extract<SessionEvent, { type: 'turn/end' }> => event.type === 'turn/end',
|
|
(event): event is Extract<SessionEvent, { type: 'turn/end' }> => event.type === 'turn/end',
|
|
|
)
|
|
)
|
|
|
const reason = turnEnd?.data.reason
|
|
const reason = turnEnd?.data.reason
|
|
|
- const reasonSummary = { kind: reason?.kind }
|
|
|
|
|
- expect(reasonSummary).toEqual({ kind: 'completed' })
|
|
|
|
|
|
|
+ expect(reason).toEqual({ kind: 'completed' })
|
|
|
|
|
|
|
|
const calls = events.filter(
|
|
const calls = events.filter(
|
|
|
(event): event is Extract<SessionEvent, { type: 'tool/call' }> => event.type === 'tool/call',
|
|
(event): event is Extract<SessionEvent, { type: 'tool/call' }> => event.type === 'tool/call',
|