refactor(agent): complete inbox lifecycle migration

This commit is contained in:
_Kerman
2026-08-03 12:25:33 +08:00
parent dc1d542092
commit 49e90695cc
214 changed files with 6019 additions and 4235 deletions
+2 -1
View File
@@ -152,7 +152,8 @@ describe('same-session goal snapshot through the ACP automation driver', () => {
.filter(block => block.type === 'text' && block.text.startsWith('GOAL WRAP-UP'))
expect(closing).toHaveLength(1)
const roundTurnEnds = events.filter(event => event.type === 'turn/end' && event.data.turn === 2)
expect(roundTurnEnds).toEqual([expect.objectContaining({ data: { turn: 2, reason: { kind: 'completed' } } })])
expect(roundTurnEnds).toHaveLength(1)
expect(roundTurnEnds[0]?.data).toMatchObject({ turn: 2, reason: { kind: 'completed' } })
const context: NormalizeContext = {
sessionIds: [result.sessionId, log.id].filter((id): id is string => id !== undefined),