Commit 800849b
authored
Release v1.16.1 — Fix 6 Responses API schema bugs + debug logging (#145)
## 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 dropped** — `responsesInputToMessages()` 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
- [x] `npx vitest run` — 2602/2602 pass
- [x] 7-agent CR round 1 + fix round + 7-agent confirmation round —
converged to 0 functional findings19 files changed
Lines changed: 745 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
3 | 18 | | |
4 | 19 | | |
5 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments