fix: resolve remaining AI validation integration test failures

- Simplified Calculator and Think tool validators (no toolDescription required - built-in descriptions)
- Fixed trigger counting to exclude respondToWebhook from trigger detection
- Fixed streaming error filters to use correct error code access pattern (details.code || code)

This resolves 9 remaining integration test failures from Phase 2 AI validation implementation.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
czlonkowski
2025-10-07 08:26:24 +02:00
parent ec9d8fdb7e
commit 5e2a6bdb9c
5 changed files with 22 additions and 50 deletions

View File

@@ -308,10 +308,11 @@ describe('Integration: Chat Trigger Validation', () => {
expect(data.errors).toBeDefined();
// Should detect streaming agent has output
const streamingErrors = data.errors!.filter(e =>
e.code === 'STREAMING_AGENT_HAS_OUTPUT' ||
e.message.toLowerCase().includes('streaming')
);
const streamingErrors = data.errors!.filter(e => {
const code = e.details?.code || e.code;
return code === 'STREAMING_AGENT_HAS_OUTPUT' ||
e.message.toLowerCase().includes('streaming');
});
expect(streamingErrors.length).toBeGreaterThan(0);
});
});