test: stabilize breaking-change expectations for doctor, tools, and model reset

This commit is contained in:
William Valentin
2026-02-23 20:46:58 -08:00
parent b1b59ef25d
commit c4f5dfb52f
3 changed files with 13 additions and 4 deletions
+5 -2
View File
@@ -120,10 +120,13 @@ describe('Tool integration (end-to-end)', () => {
}
// Second call: verify the tool result was included in messages
const lastMsg = request.messages[request.messages.length - 1] as { content: unknown[] };
const resultBlock = lastMsg.content[0] as { type: string; tool_use_id: string; content: string };
const resultBlock = lastMsg.content[0] as { type: string; tool_use_id: string; content: string; is_error: boolean };
expect(resultBlock.type).toBe('tool_result');
expect(resultBlock.tool_use_id).toBe('c1');
expect(resultBlock.content).toContain('verify_pass');
expect(resultBlock.is_error).toBe(true);
expect(resultBlock.content).toContain('[provenance=tool_output');
expect(resultBlock.content).toContain('tool=shell.exec');
expect(resultBlock.content).toContain("Tool 'shell.exec' denied:");
return {
content: 'Verified tool result',