[GH-ISSUE #4010] [Issue]: Web Search fails with GPT 5.6 due to malformed tool parameters #2165

Closed
opened 2026-10-21 05:45:54 +07:00 by bsakaguchi · 1 comment
Owner

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

  1. Run Marinara Engine 2.3.4 on Android using Termux.
  2. Enable Roleplay mode and select GPT 5.6 (Sol).
  3. Configure either the OpenAI or OpenRouter endpoint.
  4. Attempt to use the Web Search tool.
  5. Observe that the model reports malformed or blank tool-call parameters and does not complete the response.

Environment

  • Marinara Engine version: 2.3.4
  • Install type: termux
  • OS + version: Android; version not provided
  • Browser or app shell: Not provided

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)
[2026-07-23T21:18:47.347Z] Fussel: OS: Android
Installation Method: Termux
Version: 2.3.4
Roleplay mode

I discovered that when trying out GPT 5.6 (Sol) and the web-search tool, that the AI complains about the JSON it receives (tool call parameters) being empty/blank and malformed, despite using the OpenAI or OpenRouter endpoint.
GPT then writes an endlessly long reasoning about the query not firing, leading to no response.
[Discord message: https://discord.com/channels/1417099416812392641/1529960998516293642/1529960998516293642]

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
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 1. Run Marinara Engine 2.3.4 on Android using Termux. 2. Enable Roleplay mode and select GPT 5.6 (Sol). 3. Configure either the OpenAI or OpenRouter endpoint. 4. Attempt to use the Web Search tool. 5. Observe that the model reports malformed or blank tool-call parameters and does not complete the response. ## Environment - Marinara Engine version: 2.3.4 - Install type: termux - OS + version: Android; version not provided - Browser or app shell: Not provided ## 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) <details> <summary>Discord thread transcript (1 message)</summary> ```text [2026-07-23T21:18:47.347Z] Fussel: OS: Android Installation Method: Termux Version: 2.3.4 Roleplay mode I discovered that when trying out GPT 5.6 (Sol) and the web-search tool, that the AI complains about the JSON it receives (tool call parameters) being empty/blank and malformed, despite using the OpenAI or OpenRouter endpoint. GPT then writes an endlessly long reasoning about the query not firing, leading to no response. [Discord message: https://discord.com/channels/1417099416812392641/1529960998516293642/1529960998516293642] ``` </details> ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:45:54 +07:00
Author
Owner

@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.delta events keyed by item_id, but Marinara was accumulating them by call_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.

<!-- gh-comment-id:5063770931 --> @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.delta` events keyed by `item_id`, but Marinara was accumulating them by `call_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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#2165
No description provided.