mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6321] [Issue]: DeepSeek-Flash reasoning returns no visible text when thinking is collapsed #3529
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#3529
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 (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
Environment
cc783dd194)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)
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 (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.
@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_contentand finalcontentas 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
stopwith 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.@SpicyMarinara commented on GitHub (Sep 18, 2026):
The parser fixtures and corrected reasoning-only error guidance are now merged into
stagingin #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.