mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3696] [Issue]: Routine summary generation returns empty with reasoning models because output is capped at 512 tokens #2000
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#2000
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 @Nekuromu on GitHub (Jul 16, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3696
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Generating a routine summary in the Conversation schedule editor consistently fails with “Routine summary was empty” when using a reasoning-enabled model through a Custom OpenAI-compatible endpoint.
The routine-summary request is hard-capped at 512 output tokens even when the connection has a higher Max Output Tokens Override. A reasoning model can consume that entire allowance in hidden reasoning before producing visible content, leaving
result.contentempty.Expected behavior
Routine summary generation should return the requested concise sentence when using a reasoning model.
The helper should provide enough output-token headroom for reasoning and should not reduce a higher connection-level max-token override back to 512.
Actual behavior
Marinara displays:
The llama.cpp log shows that the routine-summary request generated exactly 512 tokens before stopping:
No visible summary was returned.
A direct llama.cpp control test showed the same failure mechanism:
contentwas empty whilereasoning_contentconsumed the complete allowance.Steps to reproduce
Environment
Logs, screenshots, or video
Relevant llama.cpp timing output:
Additional context
The current routine-summary helper contains:
This always caps the request at 512, including when
maxTokensOverrideValueis higher:https://github.com/Pasta-Devs/Marinara-Engine/blob/staging/packages/server/src/services/conversation/schedule.service.ts#L289-L319
There is an existing fix for the same failure class in character “About Me” generation. Its source explains that the previous 512-token cap could be consumed entirely by thinking, and it now uses a 4096-token ceiling plus low reasoning effort:
https://github.com/Pasta-Devs/Marinara-Engine/blob/staging/packages/server/src/routes/characters.routes.ts#L723-L734
PR #739 also addressed empty scene summaries from reasoning-heavy models by honoring the connection max-token override:
https://github.com/Pasta-Devs/Marinara-Engine/pull/739
A possible narrow fix would be to follow those precedents:
The temporary workaround is restarting llama.cpp with
--reasoning offwhile generating the summary.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: