test: align e2e clients with enqueue acknowledgements

This commit is contained in:
_Kerman
2026-07-30 18:11:20 +08:00
parent 7ba60845d6
commit a31331cb0e
5 changed files with 29 additions and 21 deletions

View File

@@ -40,12 +40,9 @@ describe('headless-agent keyless smoke', () => {
expect(JSON.stringify(toolResult)).toContain('CLI_TOOL_ROUND_TRIP')
expect(result).toMatchObject({
type: 'result',
success: true,
turn: 1,
reason: { kind: 'completed' },
usage: { inputTokens: 18, outputTokens: 8, cacheReadTokens: 2, reasoningTokens: 1 },
})
expect(String(result?.['result'])).toContain('CLI_TOOL_ROUND_TRIP')
expect(String(result?.['output'])).toContain('CLI_TOOL_ROUND_TRIP')
expect(persistedHeader).toMatchObject({ type: 'session' })
}, LOADER_SMOKE_TEST_TIMEOUT_MS)
})