[GH-ISSUE #6521] [Issue]: Grok web search returns reasoning snippet instead of generated response #3651

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

Originally created by @SpicyMarinara on GitHub (Sep 22, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6521

Originally assigned to: @SpicyMarinara on GitHub.

Summary

When a properly configured xAI/Grok connection uses the web search tool, game mode chat returns only a prefired reasoning snippet instead of the requested response. The issue was reproduced with Grok 4.6 and Grok 4.7.

Expected behavior

Requests that invoke the web search tool should return the model's complete, user-facing response.

Actual behavior

The chat returns only a reasoning snippet, such as "I'll pull a live news snapshot and report only what comes back.", instead of the actual response.

Steps to reproduce

  1. Configure a Grok connection profile using the xAI provider and a Grok model.
  2. Enable the web search tool in the chat settings.
  3. Open a game mode chat and send a request that requires web search.
  4. Observe that the response contains only a prefired reasoning snippet rather than the completed answer.
  5. Repeat with Grok 4.6 and Grok 4.7; the issue occurs with both models.

Environment

  • Marinara Engine version: 2.4.6 (build 2.4.6+ea87e7e722cc, commit ea87e7e722)
  • Install type: termux
  • OS + version: Server: Android / Termux 6.1.145-android14-11-33419968-abS928BXXS6DZH2 (arm64); client: Android 10
  • Browser or app shell: SamsungBrowser 30.0 / Chrome 143.0.0.0 mobile web shell

Logs, screenshots, or video

No logs, screenshots, or video provided. Example returned snippet: "I'll pull a live news snapshot and report only what comes back."

Additional context

Active connection was Grok with the xAI provider and model grok-4.7 when diagnostics were captured. The discussion noted that Marinara Engine does not yet have official support for the newer Grok models and their web search functionality. The reporter also confirmed the issue with Grok 4.6.

Discord thread: Bug report - Grok web search breaks response generation
Discord thread link: https://discord.com/channels/1417099416812392641/1551692315091927182
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (9 messages)
[2026-09-21T20:31:16.967Z] Fussel: Issue description:
When I use a properly configured grok connection profile with the xAI provider and a grok model (eg. Grok 4.6/4.7), the response in a game mode chat is prefired.
This probably also applies to conversation/roleplay mode.
Prefired means that the returned response includes only a reasoning snippet (eg. "I'll pull a live news snapshot and report only what comes back.") instead of the actual desired response.
The web search tool call is enabled in the chat settings.

Desired result:
Requests including a web search tool call return the actual response and not a piece of model reasoning or some other text snippet.

I thank any effort that tries to solve this issue. Thanks for reading!

Marinara Engine diagnostics
Version: 2.4.6
Build: 2.4.6+ea87e7e722cc
Commit: ea87e7e722cc
Server OS: Android / Termux 6.1.145-android14-11-33419968-abS928BXXS6DZH2 (arm64)
Server memory: heap 119.9 / 1248 MiB; RSS 214.3 MiB
Background wake lock: acquired
Last detected freeze: none detected
Previous session: ended without shutting down - last alive 2026-09-21T19:55:37.292Z (up 57h 15m, RSS 200.6 MiB); device rebooted before next launch: no
Sessions ended without shutdown: 10 recorded
Client OS: Android 10
Browser / app shell: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/30.0 Chrome/143.0.0.0 Mobile Safari/537.36
Client runtime: {"build":"2.4.6+ea87e7e722cc","page":"mubo4evi-01lno9ka","persistence":"local","navigation":"reload","standalone":false,"view":[878,0,878,0],"events":[]}
GPU: Adreno (TM) 750
Active connection: Grok
Connection provider: xai
LLM model: grok-4.7
Mari last acted on: none recorded this session
[Discord message: https://discord.com/channels/1417099416812392641/1551692315091927182/1551692315091927182]

[2026-09-21T20:31:17.865Z] Professor Mari [bot]: Howdy!

Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.**

**Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab:

`Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.`

If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here:

`Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version`

Thank you, this will help tremendously.

This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case.

Cheers!
[Discord message: https://discord.com/channels/1417099416812392641/1551692315091927182/1551692318858416243]

[2026-09-21T20:31:51.074Z] Marinara: Grok 4-7 is out?
[Discord message: https://discord.com/channels/1417099416812392641/1551692315091927182/1551692458147188747]

[2026-09-21T20:31:56.213Z] Marinara: We don't even have official support for it.
[Discord message: https://discord.com/channels/1417099416812392641/1551692315091927182/1551692479701712917]

[2026-09-21T20:32:18.373Z] Fussel: Does 4.6 not have web search?
[Discord message: https://discord.com/channels/1417099416812392641/1551692315091927182/1551692572647235655]

[2026-09-21T20:33:12.436Z] Fussel: I just named the newest grok because I tried it, lemme see if 4.6 has the same issue
[Discord message: https://discord.com/channels/1417099416812392641/1551692315091927182/1551692799403884569]

[2026-09-21T20:36:19.287Z] Fussel: Grok 4.6 also produces the same prefire as far as my testing goes
So this isn't exclusive to 4.7
[Discord message: https://discord.com/channels/1417099416812392641/1551692315091927182/1551693583114047569]

[2026-09-22T06:49:04.291Z] Marinara: Yeah, we need to add spport for the new Groks and their web search altogether.
[Discord message: https://discord.com/channels/1417099416812392641/1551692315091927182/1551847786717253766]

[2026-09-22T06:49:16.038Z] Marinara: https://docs.x.ai/developers/grok-4-7
Grok 4.7 | SpaceXAI Docs
Technical overview of Grok 4.7, SpaceXAI's frontier model for coding, agentic tasks, and knowledge work: 500k context, pricing, reasoning effort, and API usage.
[Discord message: https://discord.com/channels/1417099416812392641/1551692315091927182/1551847835987742722]

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 (Sep 22, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6521 Originally assigned to: @SpicyMarinara on GitHub. ## Summary When a properly configured xAI/Grok connection uses the web search tool, game mode chat returns only a prefired reasoning snippet instead of the requested response. The issue was reproduced with Grok 4.6 and Grok 4.7. ## Expected behavior Requests that invoke the web search tool should return the model's complete, user-facing response. ## Actual behavior The chat returns only a reasoning snippet, such as "I'll pull a live news snapshot and report only what comes back.", instead of the actual response. ## Steps to reproduce 1. Configure a Grok connection profile using the xAI provider and a Grok model. 2. Enable the web search tool in the chat settings. 3. Open a game mode chat and send a request that requires web search. 4. Observe that the response contains only a prefired reasoning snippet rather than the completed answer. 5. Repeat with Grok 4.6 and Grok 4.7; the issue occurs with both models. ## Environment - Marinara Engine version: 2.4.6 (build 2.4.6+ea87e7e722cc, commit ea87e7e722cc) - Install type: termux - OS + version: Server: Android / Termux 6.1.145-android14-11-33419968-abS928BXXS6DZH2 (arm64); client: Android 10 - Browser or app shell: SamsungBrowser 30.0 / Chrome 143.0.0.0 mobile web shell ## Logs, screenshots, or video No logs, screenshots, or video provided. Example returned snippet: "I'll pull a live news snapshot and report only what comes back." ## Additional context Active connection was Grok with the xAI provider and model grok-4.7 when diagnostics were captured. The discussion noted that Marinara Engine does not yet have official support for the newer Grok models and their web search functionality. The reporter also confirmed the issue with Grok 4.6. Discord thread: Bug report - Grok web search breaks response generation Discord thread link: https://discord.com/channels/1417099416812392641/1551692315091927182 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (9 messages)</summary> ```text [2026-09-21T20:31:16.967Z] Fussel: Issue description: When I use a properly configured grok connection profile with the xAI provider and a grok model (eg. Grok 4.6/4.7), the response in a game mode chat is prefired. This probably also applies to conversation/roleplay mode. Prefired means that the returned response includes only a reasoning snippet (eg. "I'll pull a live news snapshot and report only what comes back.") instead of the actual desired response. The web search tool call is enabled in the chat settings. Desired result: Requests including a web search tool call return the actual response and not a piece of model reasoning or some other text snippet. I thank any effort that tries to solve this issue. Thanks for reading! Marinara Engine diagnostics Version: 2.4.6 Build: 2.4.6+ea87e7e722cc Commit: ea87e7e722cc Server OS: Android / Termux 6.1.145-android14-11-33419968-abS928BXXS6DZH2 (arm64) Server memory: heap 119.9 / 1248 MiB; RSS 214.3 MiB Background wake lock: acquired Last detected freeze: none detected Previous session: ended without shutting down - last alive 2026-09-21T19:55:37.292Z (up 57h 15m, RSS 200.6 MiB); device rebooted before next launch: no Sessions ended without shutdown: 10 recorded Client OS: Android 10 Browser / app shell: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/30.0 Chrome/143.0.0.0 Mobile Safari/537.36 Client runtime: {"build":"2.4.6+ea87e7e722cc","page":"mubo4evi-01lno9ka","persistence":"local","navigation":"reload","standalone":false,"view":[878,0,878,0],"events":[]} GPU: Adreno (TM) 750 Active connection: Grok Connection provider: xai LLM model: grok-4.7 Mari last acted on: none recorded this session [Discord message: https://discord.com/channels/1417099416812392641/1551692315091927182/1551692315091927182] [2026-09-21T20:31:17.865Z] Professor Mari [bot]: Howdy! Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.** **Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab: `Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.` If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here: `Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version` Thank you, this will help tremendously. This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case. Cheers! [Discord message: https://discord.com/channels/1417099416812392641/1551692315091927182/1551692318858416243] [2026-09-21T20:31:51.074Z] Marinara: Grok 4-7 is out? [Discord message: https://discord.com/channels/1417099416812392641/1551692315091927182/1551692458147188747] [2026-09-21T20:31:56.213Z] Marinara: We don't even have official support for it. [Discord message: https://discord.com/channels/1417099416812392641/1551692315091927182/1551692479701712917] [2026-09-21T20:32:18.373Z] Fussel: Does 4.6 not have web search? [Discord message: https://discord.com/channels/1417099416812392641/1551692315091927182/1551692572647235655] [2026-09-21T20:33:12.436Z] Fussel: I just named the newest grok because I tried it, lemme see if 4.6 has the same issue [Discord message: https://discord.com/channels/1417099416812392641/1551692315091927182/1551692799403884569] [2026-09-21T20:36:19.287Z] Fussel: Grok 4.6 also produces the same prefire as far as my testing goes So this isn't exclusive to 4.7 [Discord message: https://discord.com/channels/1417099416812392641/1551692315091927182/1551693583114047569] [2026-09-22T06:49:04.291Z] Marinara: Yeah, we need to add spport for the new Groks and their web search altogether. [Discord message: https://discord.com/channels/1417099416812392641/1551692315091927182/1551847786717253766] [2026-09-22T06:49:16.038Z] Marinara: https://docs.x.ai/developers/grok-4-7 Grok 4.7 | SpaceXAI Docs Technical overview of Grok 4.7, SpaceXAI's frontier model for coding, agentic tasks, and knowledge work: 500k context, pricing, reasoning effort, and API usage. [Discord message: https://discord.com/channels/1417099416812392641/1551692315091927182/1551847835987742722] ``` </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 06:05:30 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Sep 22, 2026):

Implementation is owned by @SpicyMarinara with Codex in draft PR #6522. Tracing the existing Grok/provider tool flow and adding regression coverage for complete web-search answers.

<!-- gh-comment-id:5772595332 --> @SpicyMarinara commented on GitHub (Sep 22, 2026): Implementation is owned by @SpicyMarinara with Codex in draft PR #6522. Tracing the existing Grok/provider tool flow and adding regression coverage for complete web-search answers.
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#3651
No description provided.