Skip to content

Release v1.16.1 — Fix 6 Responses API schema bugs + debug logging#145

Merged
jpr5 merged 4 commits intomainfrom
blitz/d5-subagents-fix/integration
Apr 29, 2026
Merged

Release v1.16.1 — Fix 6 Responses API schema bugs + debug logging#145
jpr5 merged 4 commits intomainfrom
blitz/d5-subagents-fix/integration

Conversation

@jpr5
Copy link
Copy Markdown
Contributor

@jpr5 jpr5 commented Apr 29, 2026

Summary

Release v1.16.1 — fixes 6 schema conformance bugs in the Responses API and adds debug logging across all LLM handlers.

Fixed

  • item_reference droppedresponsesInputToMessages() now synthesizes an assistant message with a matching function_call when a function_call_output has no prior matching call, preventing item_reference loss (turnIndex stuck at 0)
  • annotations missing — Added annotations: [] to all four output_text content items for schema conformance
  • item_id missing on reasoning events — Added item_id to reasoning_summary_part.added, .done, and reasoning_summary_text.done events
  • web_search_call action missing type — Changed action: { query } to action: { type: "search", query } in both streaming events and output prefix
  • item_reference for text messages — Extended item_reference handling to cover assistant text messages, not just function_call_output compensation
  • multi-fco assistantCount inflation — Fixed backward scan to find and append to existing assistant messages with tool_calls instead of creating duplicates

Added

  • Debug logging (logger.debug("Fixture matched/No fixture matched")) across all 14 LLM handler files
  • 27 new tests including e2e integration tests for turnIndex + item_reference

Test plan

  • npx vitest run — 2602/2602 pass
  • 7-agent CR round 1 + fix round + 7-agent confirmation round — converged to 0 functional findings

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Apr 29, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@copilotkit/aimock@145

commit: 6c5d173

@jpr5 jpr5 changed the title Fix 6 Responses API schema conformance bugs + debug logging across all handlers Release v1.16.1 — Fix 6 Responses API schema bugs + debug logging Apr 29, 2026
@jpr5 jpr5 force-pushed the blitz/d5-subagents-fix/integration branch from 8882b37 to dc6cf30 Compare April 29, 2026 04:33
jpr5 added 4 commits April 28, 2026 21:36
- item_reference dropped: synthesize assistant message for orphaned function_call_output
- annotations missing: add annotations: [] to all output_text content items
- item_id missing on reasoning_summary_part.added, .done, and reasoning_summary_text.done
- web_search_call action missing type: "search" in streaming events and output prefix
- item_reference for assistant text messages not counted in assistantCount
- multi-fco assistantCount inflation: backward scan to append to existing assistant messages
27 new tests covering all 6 schema conformance fixes plus e2e integration
tests for turnIndex, item_reference handling, and multi-fco scenarios.
Add logger.debug at fixture match point in all 12 remaining handlers
(search.ts, rerank.ts, moderation.ts already had it). Logs fixture
matched/no-match for debugging fixture resolution issues.
@jpr5 jpr5 force-pushed the blitz/d5-subagents-fix/integration branch from dc6cf30 to 6c5d173 Compare April 29, 2026 04:36
@jpr5 jpr5 merged commit 800849b into main Apr 29, 2026
22 checks passed
@jpr5 jpr5 deleted the blitz/d5-subagents-fix/integration branch April 29, 2026 04:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant