[GH-ISSUE #5582] [Issue]: Reasoning-only models fail when configured for agents #3091

Closed
opened 2026-10-21 05:59:30 +07:00 by bsakaguchi · 3 comments
Owner

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

Originally assigned to: @Gunterlie on GitHub.

Summary

Agents fail with an OpenRouter 400 error when GLM 5.3 Flash, a reasoning-only model, is configured as their model. The issue affects multiple agents, including World State and Professor Mari.

Expected behavior

Agents should successfully use reasoning-only models without sending a request that disables mandatory reasoning.

Actual behavior

Agent execution fails because Marinara Engine appears to disable reasoning when calling the model, and OpenRouter rejects the request with HTTP 400.

Steps to reproduce

  1. Configure an OpenRouter connection using the z-ai/glm-5.3-flash model.
  2. Set GLM 5.3 Flash as the model for an agent, such as World State or Professor Mari.
  3. Run the agent.
  4. Observe the OpenRouter 400 error stating that reasoning is mandatory and cannot be disabled.

Environment

  • Marinara Engine version: 2.4.4 staging; builds 2.4.4+32af610bb2b8 and 2.4.4+1a299369ac70
  • Install type: termux for the first reporter; Not provided for the second reporter
  • OS + version: First reporter: Android/Termux, Linux 6.1.145-android14-11-33419968-abS928BXXS6DZG1 arm64, client Android 10. Second reporter: Linux 6.8.0-134-generic x64, client Windows 10.0.
  • Browser or app shell: First reporter: SamsungBrowser 30.0 / Chrome 143.0.0.0 on Android 10. Second reporter: Chrome 151.0.0.0 on Windows 10.

Logs, screenshots, or video

World State failed: OpenRouter API error 400: Reasoning is mandatory for this endpoint and cannot be disabled.. Use Retry Failed Agents in the Agents menu to try again.

Additional context

Provider: OpenRouter. Model: z-ai/glm-5.3-flash. The first reporter reproduced the issue with World State Agent 1.0.4 and indicated it may affect multiple or all agents. A second reporter reproduced it with Professor Mari.

Discord thread: Bug report - GLM 5.3 Flash as default agent model
Discord thread link: https://discord.com/channels/1417099416812392641/1542597221466505216
Requested by: gunterlie (gunterlie, Discord ID 282074442962829312)

Discord thread transcript (5 messages)
[2026-08-27T18:10:37.668Z] Fussel: ME version: 2.4.4 staging

When I try to set a reasoning only model as default for agents, it produces an API error 400 telling me reasoning is mandatory and cannot be disabled.

Example:
World State failed: OpenRouter API error 400: Reasoning is mandatory for this endpoint and cannot be disabled.. Use Retry Failed Agents in the Agents menu to try again.

Example model: GLM 5.3 Flash
[Discord message: https://discord.com/channels/1417099416812392641/1542597221466505216/1542597221466505216]

[2026-08-27T18:10:38.332Z] 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/1542597221466505216/1542597224251400242]

[2026-08-27T18:11:11.991Z] Fussel: Marinara Engine diagnostics
Version: 2.4.4
Build: 2.4.4+32af610bb2b8
Commit: 32af610bb2b8
Server OS: Android / Termux 6.1.145-android14-11-33419968-abS928BXXS6DZG1 (arm64)
Server memory: heap 180.2 / 1120 MiB; RSS 153 MiB
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
GPU: Adreno (TM) 750
Active connection: GLM Flash
Connection provider: openrouter
LLM model: z-ai/glm-5.3-flash
[Discord message: https://discord.com/channels/1417099416812392641/1542597221466505216/1542597365427609680]

[2026-08-27T18:14:54.827Z] Fussel: This seems to be a general issue regarding multiple agents, if not all.
But for example, I am running the World State Agent on version 1.0.4
[Discord message: https://discord.com/channels/1417099416812392641/1542597221466505216/1542598300069527655]

[2026-08-27T19:43:53.776Z] ShadowKai: Marinara Engine diagnostics
Version: 2.4.4
Build: 2.4.4+1a299369ac70
Commit: 1a299369ac70
Server OS: Linux 6.8.0-134-generic (x64)
Server memory: heap 142.8 / 2149.8 MiB; RSS 359.3 MiB
Client OS: Windows 10.0
Browser / app shell: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/151.0.0.0 Safari/537.36
GPU: ANGLE (NVIDIA, NVIDIA GeForce RTX 4070 Ti (0x00002782) Direct3D11 vs_5_0 ps_5_0, D3D11)
Active connection: GLM 5.3 Flash
Connection provider: openrouter
LLM model: z-ai/glm-5.3-flash

Hello! I'm having the same issues and it happens when I set Professor Mari to GLM 5.3 Flash as well! Thanks a lot in advance!
[Discord message: https://discord.com/channels/1417099416812392641/1542597221466505216/1542620693244543066]

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 (Aug 27, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5582 Originally assigned to: @Gunterlie on GitHub. ## Summary Agents fail with an OpenRouter 400 error when GLM 5.3 Flash, a reasoning-only model, is configured as their model. The issue affects multiple agents, including World State and Professor Mari. ## Expected behavior Agents should successfully use reasoning-only models without sending a request that disables mandatory reasoning. ## Actual behavior Agent execution fails because Marinara Engine appears to disable reasoning when calling the model, and OpenRouter rejects the request with HTTP 400. ## Steps to reproduce 1. Configure an OpenRouter connection using the z-ai/glm-5.3-flash model. 2. Set GLM 5.3 Flash as the model for an agent, such as World State or Professor Mari. 3. Run the agent. 4. Observe the OpenRouter 400 error stating that reasoning is mandatory and cannot be disabled. ## Environment - Marinara Engine version: 2.4.4 staging; builds 2.4.4+32af610bb2b8 and 2.4.4+1a299369ac70 - Install type: termux for the first reporter; Not provided for the second reporter - OS + version: First reporter: Android/Termux, Linux 6.1.145-android14-11-33419968-abS928BXXS6DZG1 arm64, client Android 10. Second reporter: Linux 6.8.0-134-generic x64, client Windows 10.0. - Browser or app shell: First reporter: SamsungBrowser 30.0 / Chrome 143.0.0.0 on Android 10. Second reporter: Chrome 151.0.0.0 on Windows 10. ## Logs, screenshots, or video World State failed: OpenRouter API error 400: Reasoning is mandatory for this endpoint and cannot be disabled.. Use Retry Failed Agents in the Agents menu to try again. ## Additional context Provider: OpenRouter. Model: z-ai/glm-5.3-flash. The first reporter reproduced the issue with World State Agent 1.0.4 and indicated it may affect multiple or all agents. A second reporter reproduced it with Professor Mari. Discord thread: Bug report - GLM 5.3 Flash as default agent model Discord thread link: https://discord.com/channels/1417099416812392641/1542597221466505216 Requested by: gunterlie (gunterlie, Discord ID 282074442962829312) <details> <summary>Discord thread transcript (5 messages)</summary> ```text [2026-08-27T18:10:37.668Z] Fussel: ME version: 2.4.4 staging When I try to set a reasoning only model as default for agents, it produces an API error 400 telling me reasoning is mandatory and cannot be disabled. Example: World State failed: OpenRouter API error 400: Reasoning is mandatory for this endpoint and cannot be disabled.. Use Retry Failed Agents in the Agents menu to try again. Example model: GLM 5.3 Flash [Discord message: https://discord.com/channels/1417099416812392641/1542597221466505216/1542597221466505216] [2026-08-27T18:10:38.332Z] 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/1542597221466505216/1542597224251400242] [2026-08-27T18:11:11.991Z] Fussel: Marinara Engine diagnostics Version: 2.4.4 Build: 2.4.4+32af610bb2b8 Commit: 32af610bb2b8 Server OS: Android / Termux 6.1.145-android14-11-33419968-abS928BXXS6DZG1 (arm64) Server memory: heap 180.2 / 1120 MiB; RSS 153 MiB 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 GPU: Adreno (TM) 750 Active connection: GLM Flash Connection provider: openrouter LLM model: z-ai/glm-5.3-flash [Discord message: https://discord.com/channels/1417099416812392641/1542597221466505216/1542597365427609680] [2026-08-27T18:14:54.827Z] Fussel: This seems to be a general issue regarding multiple agents, if not all. But for example, I am running the World State Agent on version 1.0.4 [Discord message: https://discord.com/channels/1417099416812392641/1542597221466505216/1542598300069527655] [2026-08-27T19:43:53.776Z] ShadowKai: Marinara Engine diagnostics Version: 2.4.4 Build: 2.4.4+1a299369ac70 Commit: 1a299369ac70 Server OS: Linux 6.8.0-134-generic (x64) Server memory: heap 142.8 / 2149.8 MiB; RSS 359.3 MiB Client OS: Windows 10.0 Browser / app shell: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/151.0.0.0 Safari/537.36 GPU: ANGLE (NVIDIA, NVIDIA GeForce RTX 4070 Ti (0x00002782) Direct3D11 vs_5_0 ps_5_0, D3D11) Active connection: GLM 5.3 Flash Connection provider: openrouter LLM model: z-ai/glm-5.3-flash Hello! I'm having the same issues and it happens when I set Professor Mari to GLM 5.3 Flash as well! Thanks a lot in advance! [Discord message: https://discord.com/channels/1417099416812392641/1542597221466505216/1542620693244543066] ``` </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:59:30 +07:00
Author
Owner

@szaki2 commented on GitHub (Aug 30, 2026):

Not just OpenRouter — the same problem happens with NanoGPT too. Even if I manually change the default chat parameters for the connection, it still doesn’t work. Strangely, I get an error in the connection check, but Professor Mari chats work fine with the same config and the reasoning effort sending switch turned off.

<!-- gh-comment-id:5468837250 --> @szaki2 commented on GitHub (Aug 30, 2026): Not just OpenRouter — the same problem happens with NanoGPT too. Even if I manually change the default chat parameters for the connection, it still doesn’t work. Strangely, I get an error in the connection check, but Professor Mari chats work fine with the same config and the reasoning effort sending switch turned off.
Author
Owner

@Gunterlie commented on GitHub (Aug 30, 2026):

Implementation is in progress in #5683. Owner: @Gunterlie.

<!-- gh-comment-id:5470626705 --> @Gunterlie commented on GitHub (Aug 30, 2026): Implementation is in progress in #5683. Owner: @Gunterlie.
Author
Owner

@Gunterlie commented on GitHub (Aug 30, 2026):

Fixed in #5683 and merged into staging.

<!-- gh-comment-id:5470803309 --> @Gunterlie commented on GitHub (Aug 30, 2026): Fixed in #5683 and merged into staging.
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#3091
No description provided.