mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #8096] [Feature]: Professor Mari recovers when a reply hits the model's output limit #7560
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#7560
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 @ylli-selmani on GitHub (Oct 22, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8096
Originally assigned to: @ylli-selmani on GitHub.
What problem does this solve?
When a model reply runs into the connection's output limit (Max Output Tokens), Professor Mari stops with "Professor Mari hit the model output limit. Ask her to continue…". The user has to type "continue", and she usually retries the same oversized call and gets cut again. Small local models (e.g. Gemma 3 12b) hit this on any large write: onboarding, characters, presets, themes.
On native tool-calling connections the cut was hidden: providers reported a cut tool call as
tool_calls, notlength. Mari ran it with empty arguments, got a generic "invalid arguments" error and never learned why it failed.Proposed solution
lengthwhen a reply with tool calls was cut.Alternatives considered
Additional context
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@ylli-selmani commented on GitHub (Oct 22, 2026):
Done on staging in two parts:
lengthfor a cut tool call, and the pi runtime recovers with an engine note (up to 2 times per run).Not done: a partial-CSS Engine action for themes. #8100 checked that
theme.updatereplaces the whole stylesheet, so the themes handbook asks Mari to keep a stylesheet small on a small limit instead, and a cut one is caught by #8090's recovery. We'll open a new issue for the Engine action if live runs show themes still getting cut.🤖 Closed with Claude Code