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
@@ -70,7 +70,7 @@ describe('Agent', () => {
source: { kind: 'plugin', plugin: 'test' },
})
agent.inject(context)
agent.inbox.remove('next-step', context.id)
agent.inbox.remove(context.id)
const prompt = createUserMessage({ content: [{ type: 'text', text: 'run' }], source: { kind: 'user' } })
agent.followup(prompt)
await agent.whenIdle()