mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #4010] [Issue]: Web Search fails with GPT 5.6 due to malformed tool parameters #2165
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#2165
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SpicyMarinara on GitHub (Jul 23, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4010
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Web Search fails when using GPT 5.6 (Sol) in Roleplay mode. The model reports that the received tool-call parameters are empty or malformed on both OpenAI and OpenRouter endpoints.
Expected behavior
The Web Search tool should receive valid parameters, execute the query, and allow GPT 5.6 to return a response.
Actual behavior
GPT 5.6 reports empty or malformed JSON tool-call parameters, produces indefinitely long reasoning about the query not firing, and returns no response.
Steps to reproduce
Environment
Logs, screenshots, or video
No logs, screenshots, or video provided. The reported model error states that the Web Search tool-call JSON parameters are empty, blank, or malformed.
Additional context
The issue occurs in Roleplay mode and was reproduced with both OpenAI and OpenRouter endpoints.
Discord thread: Web Search fails with GPT 5.6
Discord thread link: https://discord.com/channels/1417099416812392641/1529960998516293642
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)
Discord thread transcript (1 message)
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Jul 23, 2026):
Root-caused and fixed. On the OpenAI Responses API (which GPT-5.6/Sol uses), streamed tool-call arguments arrive in
response.function_call_arguments.deltaevents keyed byitem_id, but Marinara was accumulating them bycall_id— which those events don't carry — so the arguments never accumulated and Web Search received empty/malformed JSON. This hit both OpenAI and OpenRouter because gpt-5.6 routes through the Responses API by model name. PR against staging incoming with a regression that streams a function call and asserts the query reassembles.