mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8805] [MERGED] Help Home Mari deliver quick replies on weaker models #8816
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#8816
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8805
Author: @ylli-selmani
Created: 11/4/2026
Status: ✅ Merged
Merged: 11/4/2026
Merged by: @ylli-selmani
Base:
staging← Head:fix/mari-suggestion-recovery📝 Commits (4)
a6bb2ceTeach Mari how to finish with a quick reply7a491f9Recover passive quick replies from Mari's trailing chip blocka1684fbKeep streamed tags hidden across every token boundary6466e8fScrub recovered Classic chip labels before display and history📊 Changes
6 files changed (+173 additions, -19 deletions)
View changed files
📝
packages/server/src/services/professor-mari/pi-runtime.ts(+20 -2)➕
packages/server/src/services/professor-mari/suggestion-suffix.ts(+53 -0)📝
packages/server/src/services/professor-mari/workspace-agent.service.ts(+22 -15)📝
scripts/regressions/professor-mari/action-result.regression.ts(+6 -0)📝
scripts/regressions/professor-mari/builtin-skills.regression.ts(+4 -1)📝
scripts/regressions/professor-mari/pi-runtime.regression.ts(+68 -1)📄 Description
Linked issue
Closes #8803
Closes #8804
Why this change
Home Mari sometimes writes useful quick replies as XML after her answer. The composer then has no buttons, and the XML stays in chat history. We can recover the intended choices locally.
What changed
Validation
At
6466e8f8c9the Classic label regression failed before the fix and passed afterward. The Pi runtime suite and pnpm check also passed, and local CodeRabbit returned zero findings on the repair diff.At
a1684fb729, pnpm check and both focused regression suites (pi-runtime and builtin-skills) passed. The fixture streams the screenshot shape character by character and verifies three persisted chips in one request for both Pi and Classic. It also covers native-chip precedence and literal examples.A live Home workspace run with Gemma 4 31B on NanoGPT auto-routing emitted a suggestion event and saved prose plus three chips. A separate direct old/new Pi prompt comparison with the same follow-up question and suggestions tool produced three native chips and no XML in both arms, one request each. This pair does not establish a change in failure rate.
CodeRabbit reviewed the branch and the follow-up. Three suggestions were declined after tracing them. Adding a synthetic UI call next to todo would change Pi’s turn termination. Replacing prior structured suggestions would violate the priority assigned to them. The requested negative prompt assertion already exercises the assembled native prompt in pi-runtime.regression.ts.
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)UI evidence (if applicable)
Server-side behavior. Live API and persistence tested. The maintainer also tested quick replies successfully with Gemma 4 31B on the NanoGPT SCX (Global) BF16 route. Lower-precision local inference has not been tested.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.