refactor(agent): address inbox mutations by message id

This commit is contained in:
_Kerman
2026-08-04 13:10:22 +08:00
parent a90a1645aa
commit 0ac95437b4
20 changed files with 76 additions and 47 deletions
+1 -1
View File
@@ -556,7 +556,7 @@ describe('goal replay validation', () => {
})
const inbox = new Inbox(session, { inserted: () => {}, discarded: () => {} })
inbox.append('next-step', message)
expect(inbox.remove('next-step', message.id)).toBe(true)
expect(inbox.remove(message.id)).toBe(true)
expect(foldGoal(session.events)).toMatchObject({ goal: { id: change.goal.id, revision: 1 } })
})