co-mono/packages/ai/test
Michael Renner 6289c144bf
fix(ai): batch tool-result images after consecutive tool results (#902)
Fixes 400 errors when reading multiple images via GitHub Copilot's
Claude models. Claude requires tool_use -> tool_result adjacency with
no user messages interleaved.

Before: assistant(tool_calls) -> tool -> user(images) -> tool -> user(images)
After:  assistant(tool_calls) -> tool -> tool -> user(all images)
2026-01-22 13:10:10 +01:00
..
data feat(ai): Add image input tests for vision-capable models 2025-08-30 18:37:17 +02:00
abort.test.ts fix(ai): normalize tool call ids and handoff tests fixes #821 2026-01-19 00:10:49 +01:00
anthropic-tool-name-normalization.test.ts fix(ai): normalize tool names case-insensitively against CC tool list 2026-01-17 21:03:47 +01:00
bedrock-models.test.ts feat(ai): Add Amazon Bedrock provider (#494) 2026-01-13 00:32:59 +01:00
bedrock-utils.ts feat(ai): Add Amazon Bedrock provider (#494) 2026-01-13 00:32:59 +01:00
context-overflow.test.ts fix(ai): normalize tool call ids and handoff tests fixes #821 2026-01-19 00:10:49 +01:00
cross-provider-handoff.test.ts fix(ai): skip cross-provider-handoff tests when no API keys available 2026-01-19 16:47:49 +01:00
empty.test.ts Fix PR #689: Add changelog attribution, coding-agent changelog, fix test types, add provider to test suites 2026-01-13 16:46:00 +01:00
google-gemini-cli-claude-thinking-header.test.ts Improve Gemini CLI provider retries and headers (#670) 2026-01-13 01:04:53 +01:00
google-gemini-cli-empty-stream.test.ts Improve Gemini CLI provider retries and headers (#670) 2026-01-13 01:04:53 +01:00
google-gemini-cli-retry-delay.test.ts Improve Gemini CLI provider retries and headers (#670) 2026-01-13 01:04:53 +01:00
google-shared-gemini3-unsigned-tool-call.test.ts fix(ai): preserve unsigned tool call context for Gemini 3 with anti-mimicry note 2026-01-16 23:42:39 +01:00
google-thinking-signature.test.ts fix(ai): correct Google thinking detection and remove unsupported id fields 2026-01-11 19:25:38 +01:00
image-tool-result.test.ts feat(ai): add strictResponsesPairing for Azure OpenAI Responses API 2026-01-18 20:15:33 +01:00
oauth.ts WIP: Remove global state from pi-ai OAuth/API key handling 2025-12-25 01:01:03 +01:00
openai-codex-stream.test.ts fix(ai): update codex stream originator test 2026-01-10 21:54:21 +00:00
openai-completions-tool-result-images.test.ts fix(ai): batch tool-result images after consecutive tool results (#902) 2026-01-22 13:10:10 +01:00
openai-responses-reasoning-replay-e2e.test.ts fix(ai): handle same-provider different-model handoff in OpenAI Responses API 2026-01-22 00:58:49 +01:00
stream.test.ts fix(ai): normalize tool call ids and handoff tests fixes #821 2026-01-19 00:10:49 +01:00
tokens.test.ts fix(ai): normalize tool call ids and handoff tests fixes #821 2026-01-19 00:10:49 +01:00
tool-call-without-result.test.ts feat(ai): add strictResponsesPairing for Azure OpenAI Responses API 2026-01-18 20:15:33 +01:00
total-tokens.test.ts feat(ai): add strictResponsesPairing for Azure OpenAI Responses API 2026-01-18 20:15:33 +01:00
unicode-surrogate.test.ts fix(ai): normalize tool call ids and handoff tests fixes #821 2026-01-19 00:10:49 +01:00
xhigh.test.ts feat(ai): add strictResponsesPairing for Azure OpenAI Responses API 2026-01-18 20:15:33 +01:00
zen.test.ts fix(ai): skip zen tests when OPENCODE_API_KEY is not set (#605) 2026-01-09 18:41:12 +01:00