[GH-ISSUE #6321] [Issue]: DeepSeek-Flash reasoning returns no visible text when thinking is collapsed #3529

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

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Using DeepSeek-Flash through its own API, approximately 3 of 4 generations fail when reasoning is enabled and thinking is collapsed. The issue does not occur when reasoning is disabled or when the option to not collapse thinking is enabled.

Expected behavior

DeepSeek-Flash should complete the generation and display the visible response with reasoning enabled, regardless of whether thinking is collapsed.

Actual behavior

Generations often fail with: "The model finished reasoning (50 reasoning tokens, finish reason "stop") but returned no visible text. Try again, or lower Reasoning Effort." Lowering or increasing reasoning effort does not resolve the issue. Disabling reasoning or enabling Settings → Appearance → Roleplay → "Don't collapse thinking" allows generations to work.

Steps to reproduce

  1. Configure a custom provider connection using DeepSeek's API and select the deepseek-flash model.
  2. Leave Settings → Appearance → Roleplay → "Don't collapse thinking" disabled.
  3. Enable reasoning and generate responses repeatedly.
  4. Observe that approximately 3 of 4 generations may fail with a no-visible-text error after reasoning completes.
  5. Disable reasoning or enable "Don't collapse thinking" and generate again; the generation works with the reported reasoning settings.

Environment

  • Marinara Engine version: 2.4.6 (build 2.4.6+cc783dd194ba, commit cc783dd194)
  • Install type: Not provided
  • OS + version: Server: Linux 7.2.5-1-cachyos (x64); client: Linux
  • Browser or app shell: Chrome 153.0.0.0, Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/153.0.0.0 Safari/537.36

Logs, screenshots, or video

Observed error: "The model finished reasoning (50 reasoning tokens, finish reason "stop") but returned no visible text. Try again, or lower Reasoning Effort." No screenshots or video were provided.

Additional context

Active connection: DeepSeek-Flash; connection provider: custom; LLM model: deepseek-flash. The user reports that enabling "Don't collapse thinking" works with any reasoning setting. Another user reports seeing the error occasionally but has not found a clean reproduction. GPU: ANGLE (NVIDIA Corporation, NVIDIA GeForce RTX 4090/PCIe/SSE2, OpenGL ES 3.2).

Discord thread: Deepseek thinking fails, unless I enable display of thinking
Discord thread link: https://discord.com/channels/1417099416812392641/1550428628192329758
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (11 messages)
[2026-09-18T08:49:50.532Z] Barafu Albino: I try to use deepseek-flash from their own API.  However, 3 of 4 generations fail with this message: "The model finished reasoning (50 reasoning tokens, finish reason "stop") but returned no visible text. Try again, or lower Reasoning Effort."

I tried lower and higher reasoning, but it does not help, unless I turn the reasoning off completely. Then it works. 

What else works, however, if in Settings → Appearance → Roleplay I enable "Don't collapse thinking." Then it works with any reasoning setting. Which makes me believe the problem is all in ME.

Marinara Engine diagnostics
Version: 2.4.6
Build: 2.4.6+cc783dd194ba
Commit: cc783dd194ba
Server OS: Linux 7.2.5-1-cachyos (x64)
Server memory: heap 95.2 / 4288 MiB; RSS 280.4 MiB
Background wake lock: not reported
Last detected freeze: none detected
Previous session: shut down cleanly at 2026-09-17T14:54:39.317Z
Sessions ended without shutdown: 0 recorded
Client OS: Linux
Browser / app shell: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/153.0.0.0 Safari/537.36
Client runtime: {"build":"2.4.6+cc783dd194ba","page":"mu6pjnhs-fezwsxc3","persistence":"local","navigation":"navigate","standalone":false,"view":[758,0,0,0],"events":

...

GPU: ANGLE (NVIDIA Corporation, NVIDIA GeForce RTX 4090/PCIe/SSE2, OpenGL ES 3.2)
Active connection: DeepSeek-Flash
Connection provider: custom
LLM model: deepseek-flash
Mari last acted on: none recorded this session
[Discord message: https://discord.com/channels/1417099416812392641/1550428628192329758/1550428628192329758]

[2026-09-18T08:49:51.134Z] 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/1550428628192329758/1550428630717431859]

[2026-09-18T12:31:31.147Z] Marinara: @DSBwizzard do you ever have any problems with DS Flash reasoning?
[Discord message: https://discord.com/channels/1417099416812392641/1550428628192329758/1550484415015034941]

[2026-09-18T12:31:46.156Z] DSBwizzard: oh yea
[Discord message: https://discord.com/channels/1417099416812392641/1550428628192329758/1550484477967601837]

[2026-09-18T12:31:54.951Z] DSBwizzard: I see it occasionally
[Discord message: https://discord.com/channels/1417099416812392641/1550428628192329758/1550484514856370278]

[2026-09-18T12:32:03.958Z] DSBwizzard: that error, but I haven't gotten a clean repro
[Discord message: https://discord.com/channels/1417099416812392641/1550428628192329758/1550484552634470471]

[2026-09-18T12:32:58.770Z] DSBwizzard: Never tried the workaround the user reports
[Discord message: https://discord.com/channels/1417099416812392641/1550428628192329758/1550484782532788379]

[2026-09-18T12:33:02.687Z] Marinara: To be fair, I get this error at work, so…
[Discord message: https://discord.com/channels/1417099416812392641/1550428628192329758/1550484798961885287]

[2026-09-18T12:33:07.447Z] Marinara: It may be on them.
[Discord message: https://discord.com/channels/1417099416812392641/1550428628192329758/1550484818926764083]

[2026-09-18T12:33:11.770Z] Marinara: :Monaks:
[Discord message: https://discord.com/channels/1417099416812392641/1550428628192329758/1550484837058482292]

[2026-09-18T12:33:21.221Z] Marinara: Still, better to check.
[Discord message: https://discord.com/channels/1417099416812392641/1550428628192329758/1550484876698984563]

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 18, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6321 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Using DeepSeek-Flash through its own API, approximately 3 of 4 generations fail when reasoning is enabled and thinking is collapsed. The issue does not occur when reasoning is disabled or when the option to not collapse thinking is enabled. ## Expected behavior DeepSeek-Flash should complete the generation and display the visible response with reasoning enabled, regardless of whether thinking is collapsed. ## Actual behavior Generations often fail with: "The model finished reasoning (50 reasoning tokens, finish reason \"stop\") but returned no visible text. Try again, or lower Reasoning Effort." Lowering or increasing reasoning effort does not resolve the issue. Disabling reasoning or enabling Settings → Appearance → Roleplay → "Don't collapse thinking" allows generations to work. ## Steps to reproduce 1. Configure a custom provider connection using DeepSeek's API and select the deepseek-flash model. 2. Leave Settings → Appearance → Roleplay → "Don't collapse thinking" disabled. 3. Enable reasoning and generate responses repeatedly. 4. Observe that approximately 3 of 4 generations may fail with a no-visible-text error after reasoning completes. 5. Disable reasoning or enable "Don't collapse thinking" and generate again; the generation works with the reported reasoning settings. ## Environment - Marinara Engine version: 2.4.6 (build 2.4.6+cc783dd194ba, commit cc783dd194ba) - Install type: Not provided - OS + version: Server: Linux 7.2.5-1-cachyos (x64); client: Linux - Browser or app shell: Chrome 153.0.0.0, Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/153.0.0.0 Safari/537.36 ## Logs, screenshots, or video Observed error: "The model finished reasoning (50 reasoning tokens, finish reason \"stop\") but returned no visible text. Try again, or lower Reasoning Effort." No screenshots or video were provided. ## Additional context Active connection: DeepSeek-Flash; connection provider: custom; LLM model: deepseek-flash. The user reports that enabling "Don't collapse thinking" works with any reasoning setting. Another user reports seeing the error occasionally but has not found a clean reproduction. GPU: ANGLE (NVIDIA Corporation, NVIDIA GeForce RTX 4090/PCIe/SSE2, OpenGL ES 3.2). Discord thread: Deepseek thinking fails, unless I enable display of thinking Discord thread link: https://discord.com/channels/1417099416812392641/1550428628192329758 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (11 messages)</summary> ```text [2026-09-18T08:49:50.532Z] Barafu Albino: I try to use deepseek-flash from their own API. However, 3 of 4 generations fail with this message: "The model finished reasoning (50 reasoning tokens, finish reason "stop") but returned no visible text. Try again, or lower Reasoning Effort." I tried lower and higher reasoning, but it does not help, unless I turn the reasoning off completely. Then it works. What else works, however, if in Settings → Appearance → Roleplay I enable "Don't collapse thinking." Then it works with any reasoning setting. Which makes me believe the problem is all in ME. Marinara Engine diagnostics Version: 2.4.6 Build: 2.4.6+cc783dd194ba Commit: cc783dd194ba Server OS: Linux 7.2.5-1-cachyos (x64) Server memory: heap 95.2 / 4288 MiB; RSS 280.4 MiB Background wake lock: not reported Last detected freeze: none detected Previous session: shut down cleanly at 2026-09-17T14:54:39.317Z Sessions ended without shutdown: 0 recorded Client OS: Linux Browser / app shell: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/153.0.0.0 Safari/537.36 Client runtime: {"build":"2.4.6+cc783dd194ba","page":"mu6pjnhs-fezwsxc3","persistence":"local","navigation":"navigate","standalone":false,"view":[758,0,0,0],"events": ... GPU: ANGLE (NVIDIA Corporation, NVIDIA GeForce RTX 4090/PCIe/SSE2, OpenGL ES 3.2) Active connection: DeepSeek-Flash Connection provider: custom LLM model: deepseek-flash Mari last acted on: none recorded this session [Discord message: https://discord.com/channels/1417099416812392641/1550428628192329758/1550428628192329758] [2026-09-18T08:49:51.134Z] 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/1550428628192329758/1550428630717431859] [2026-09-18T12:31:31.147Z] Marinara: @DSBwizzard do you ever have any problems with DS Flash reasoning? [Discord message: https://discord.com/channels/1417099416812392641/1550428628192329758/1550484415015034941] [2026-09-18T12:31:46.156Z] DSBwizzard: oh yea [Discord message: https://discord.com/channels/1417099416812392641/1550428628192329758/1550484477967601837] [2026-09-18T12:31:54.951Z] DSBwizzard: I see it occasionally [Discord message: https://discord.com/channels/1417099416812392641/1550428628192329758/1550484514856370278] [2026-09-18T12:32:03.958Z] DSBwizzard: that error, but I haven't gotten a clean repro [Discord message: https://discord.com/channels/1417099416812392641/1550428628192329758/1550484552634470471] [2026-09-18T12:32:58.770Z] DSBwizzard: Never tried the workaround the user reports [Discord message: https://discord.com/channels/1417099416812392641/1550428628192329758/1550484782532788379] [2026-09-18T12:33:02.687Z] Marinara: To be fair, I get this error at work, so… [Discord message: https://discord.com/channels/1417099416812392641/1550428628192329758/1550484798961885287] [2026-09-18T12:33:07.447Z] Marinara: It may be on them. [Discord message: https://discord.com/channels/1417099416812392641/1550428628192329758/1550484818926764083] [2026-09-18T12:33:11.770Z] Marinara: :Monaks: [Discord message: https://discord.com/channels/1417099416812392641/1550428628192329758/1550484837058482292] [2026-09-18T12:33:21.221Z] Marinara: Still, better to check. [Discord message: https://discord.com/channels/1417099416812392641/1550428628192329758/1550484876698984563] ``` </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:03:59 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

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

Investigation owner: @SpicyMarinara (Codex), continuing the staging sweep in #6319. I will trace the reasoning parser and collapse-setting boundary with deterministic provider fixtures before attributing this to the API.

<!-- gh-comment-id:5730143057 --> @SpicyMarinara commented on GitHub (Sep 18, 2026): Investigation owner: @SpicyMarinara (Codex), continuing the staging sweep in #6319. I will trace the reasoning parser and collapse-setting boundary with deterministic provider fixtures before attributing this to the API.
Author
Owner

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

I traced the setting and reproduced the API response shapes locally. Don't Collapse Thinking is consumed by the Roleplay disclosure UI; it is not passed to the model or used by the server's empty-response check.

DeepSeek documents reasoning_content and final content as separate fields: Thinking Mode. The current parser handles both, including when they appear in the same streamed chunk. A new regression in #6319 exercises both provider entry points, streaming/non-streaming, combined/separate fields, reasoning capture enabled/disabled, and a response containing reasoning but genuinely empty final content. All 24 local fixture combinations pass. These are synthetic fixtures, not a claim that the intermittent live-API failure is resolved.

The reported stop with about 50 reasoning tokens does not establish output-budget exhaustion. I am correcting that misleading advice in #6319. I have not reproduced a collapse-dependent loss of final text, so this report stays open pending the failing response evidence.

For one failing request, please capture the debug response's choices[].delta.content / message.content, reasoning_content, finish_reason, and usage, along with any response regex scripts or custom thinking tags in use. Remove API keys and private conversation text; field presence, character counts, tag boundaries and the final chunks are enough to begin. This will distinguish an empty provider answer from text removed during post-processing.

<!-- gh-comment-id:5730320916 --> @SpicyMarinara commented on GitHub (Sep 18, 2026): I traced the setting and reproduced the API response shapes locally. **Don't Collapse Thinking** is consumed by the Roleplay disclosure UI; it is not passed to the model or used by the server's empty-response check. DeepSeek documents `reasoning_content` and final `content` as separate fields: [Thinking Mode](https://api-docs.deepseek.com/guides/thinking_mode/). The current parser handles both, including when they appear in the same streamed chunk. A new regression in #6319 exercises both provider entry points, streaming/non-streaming, combined/separate fields, reasoning capture enabled/disabled, and a response containing reasoning but genuinely empty final content. All 24 local fixture combinations pass. These are synthetic fixtures, not a claim that the intermittent live-API failure is resolved. The reported `stop` with about 50 reasoning tokens does not establish output-budget exhaustion. I am correcting that misleading advice in #6319. I have not reproduced a collapse-dependent loss of final text, so this report stays open pending the failing response evidence. For one failing request, please capture the debug response's `choices[].delta.content` / `message.content`, `reasoning_content`, `finish_reason`, and usage, along with any response regex scripts or custom thinking tags in use. Remove API keys and private conversation text; field presence, character counts, tag boundaries and the final chunks are enough to begin. This will distinguish an empty provider answer from text removed during post-processing.
Author
Owner

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

The parser fixtures and corrected reasoning-only error guidance are now merged into staging in #6319. All 24 synthetic DeepSeek-shaped response cases pass, and the existing desktop thinking-collapse browser test passes. These checks do not reproduce the reported intermittent live failure, so this issue remains open pending the sanitized failing-response details requested above. No paid provider calls were made.

<!-- gh-comment-id:5732816560 --> @SpicyMarinara commented on GitHub (Sep 18, 2026): The parser fixtures and corrected reasoning-only error guidance are now merged into `staging` in #6319. All 24 synthetic DeepSeek-shaped response cases pass, and the existing desktop thinking-collapse browser test passes. These checks do not reproduce the reported intermittent live failure, so this issue remains open pending the sanitized failing-response details requested above. No paid provider calls were made.
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#3529
No description provided.