test(session): align crash checkpoint order

This commit is contained in:
_Kerman
2026-08-04 15:01:22 +08:00
parent 19206db7bf
commit ca36f671a7

View File

@@ -85,8 +85,8 @@ describe.skipIf(process.platform === 'win32')('semantic checkpoint hard-crash re
expect(crashed.markerText).toBe('request-dispatched')
const events = await load(crashed.root)
expect(events.map(event => event.type)).toEqual([
'agent/inbox/spliced', 'agent/inbox/spliced',
'turn/start', 'step/start', 'user/message', 'request/header', 'request/context', 'step/end', 'turn/end',
'agent/inbox/spliced', 'turn/start', 'agent/inbox/spliced',
'step/start', 'user/message', 'request/header', 'request/context', 'step/end', 'turn/end',
])
expect(events.at(-1)).toMatchObject({
type: 'turn/end', data: { reason: { kind: 'interrupted' } },