mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 20:03:05 +00:00
When a user interrupts a tool call flow (sends a message without providing tool results), APIs like OpenAI Responses and Anthropic fail because: - OpenAI requires tool outputs for function calls - OpenAI requires reasoning items to have their following items - Anthropic requires non-empty content for error tool results Instead of filtering out orphaned tool calls (which breaks thinking signatures), we now insert synthetic empty tool results with isError: true and content 'No result provided'. This preserves the conversation structure and satisfies all API requirements. |
||
|---|---|---|
| .. | ||
| .temp-images | ||
| data | ||
| abort.test.ts | ||
| agent.test.ts | ||
| context-overflow.test.ts | ||
| copilot-initiator.test.ts | ||
| empty.test.ts | ||
| gemini-3-flash-tool-calling.test.ts | ||
| google-thought-signature.test.ts | ||
| handoff.test.ts | ||
| image-limits.test.ts | ||
| image-tool-result.test.ts | ||
| mistral-debug.test.ts | ||
| mistral-empty-assistant.test.ts | ||
| mistral-sdk.test.ts | ||
| stream.test.ts | ||
| tokens.test.ts | ||
| tool-call-without-result.test.ts | ||
| tool-validation.test.ts | ||
| total-tokens.test.ts | ||
| unicode-surrogate.test.ts | ||
| xhigh.test.ts | ||