fix: align empty-response retry with current master

This commit is contained in:
Tianyi Cui
2026-07-25 14:39:57 +08:00
parent 4d9cf310f3
commit 9873240390
9 changed files with 24 additions and 26 deletions

View File

@@ -190,7 +190,7 @@ describe('bounded transient retry policy', () => {
const agent = context.agentLoop.create(SessionId('retry-empty-response'), { provider: 'mock', model: 'mock' })
const scheduled = waitForRetry(context, agent, 1)
agent.send([{ type: 'text', text: 'go' }])
agent.followup([{ type: 'text', text: 'go' }])
const event = await scheduled
expect(event.data.failure).toEqual({
message: 'model returned a completed response with no content',