mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8567] [MERGED] feat(mari): Send now, a message that goes in at her next step #8678
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#8678
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/8567
Author: @ylli-selmani
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @ylli-selmani
Base:
staging← Head:feat/mari-send-now📝 Commits (6)
0d42d1afeat(mari): Send now, a message that goes in at her next stepf6032e7fix(mari): Escape closes the send menu, not the omnibar behind it6872aa9fix(mari): Retry works after a partial reply894fbbffix(mari): checking for Send now no longer parses the pending file every step2fe3ea8fix(mari): a fraction of a pixel of scroll no longer fades the composer text72accdetest(mari): pin the Manual arming rule as it now reads📊 Changes
19 files changed (+1019 additions, -52 deletions)
View changed files
📝
docs/home/professor-mari.md(+16 -2)📝
packages/client/src/components/chat/HomeProfessorMariChat.tsx(+60 -1)📝
packages/client/src/components/chat/mari/CompactMariMessage.tsx(+9 -5)📝
packages/client/src/components/chat/mari/MariComposer.tsx(+65 -1)📝
packages/client/src/components/chat/mari/MariPendingQueue.tsx(+18 -3)📝
packages/client/src/components/chat/mari/use-mari-workspace-run.ts(+11 -2)📝
packages/client/src/lib/composer-triggers.ts(+12 -2)📝
packages/client/src/localization/locales/en.json(+7 -0)📝
packages/client/src/styles/mari.css(+55 -0)📝
packages/server/src/routes/professor-mari-workspace.routes.ts(+27 -7)📝
packages/server/src/services/professor-mari/pi-runtime.ts(+31 -9)📝
packages/server/src/services/professor-mari/workspace-agent.service.ts(+181 -15)📝
packages/server/src/services/professor-mari/workspace-message-store.ts(+6 -1)📝
packages/server/src/services/professor-mari/workspace-pending-store.ts(+52 -2)📝
packages/shared/src/types/chat.ts(+2 -0)📝
packages/shared/src/types/professor-mari-workspace.ts(+12 -0)📝
scripts/regressions/mari-permissions-mode.regression.ts(+1 -1)📝
scripts/regressions/open-issues.regression.ts(+1 -1)➕
scripts/regressions/professor-mari/mari-send-now.regression.ts(+453 -0)📄 Description
Linked issue
Closes #8538
Part of #8533
Why this change
What changed
Send now. At her next step, her reply so far is saved, your message appears below it, and the same run carries on. Both runtimes do this. Classic delivers it between rounds, and pi delivers it from the awaited
turn_endlistener throughagent.steer.One list. A Send now message is a row in the existing pending file with
steer: true, so reload, Stop, held and the drain work as they do for the queue. One that misses its step is simply the next queued message.The keys. Queue for later is the second key:
Enter sendsonEnter sendsoffShift+Enter is always a new line.
A send menu beside Send during a run, built from the same
mari-composer-menuandMariRowas the composer's other menus, for phones. Waiting rows with words alone get a Send now button, in the look of the queue's existing Send.What may join a run. The server decides, because the prompt and mode are read once per run. Files,
@links, a field, a new subject or a changed permissions mode wait for a run that reads them, and a toast says so.Permission never widens. Send now disarms a typed "yes", so it can't skip an Accept in Manual. A mode changed after the message was sent also stops delivery.
Waiting wins. A question, deferral, Accept chip, staged change, stop or replacement means no delivery, and the row follows the existing held rules. The round limit is not refilled.
Steps but no words yet keep their row, with a muted "Still working" line (
mariCheckpointFiller). If nothing has been done yet, there is no row and your message follows your last one.Per reply: trace, action results, usage, thinking, suggestions and the continuity snapshot. Kept across the run: the claim audit's results, the ask latch and the round count. A Decision answer now quotes the message you just sent.
A window that joined late gets no checkpoint event, so a Send now row leaving the list reloads the thread.
On phones, the connection name now shortens during a run so it no longer slides under Auto and Stop.
Docs:
docs/home/professor-mari.md.Things to know when reviewing
latestRun.startedAtstays at the first message on purpose.findSavedUserMessagelooked past a failed partial reply, then the server refused with "Only the latest Professor Mari user message can be reused". The server now accepts a reuse when everything after your message is a failed reply. Her words stay, your message goes last in the prompt again, and a retry that ends on her row arms no Manual approval. The regression covers it on both runtimes, except the approval rule.MariComposerandHomeProfessorMariChat.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Agent-run, for the reviewer to weigh and not as ticked proof:
pnpm build,lint,format:check,localization:checkandimpeccable:checkpass, and server and client typecheck clean.pnpm checkas a whole was not run.mari-send-now(new),mari-queue,pi-runtime,mari-understood,open-issues,composer.mari.css, and that last change has not been rebuilt.Still to do by hand:
Enter sends to Professor Marioff, Enter adds a line, Ctrl/Command+Enter sends now and Ctrl/Command+Shift+Enter queues.@link, queues and shows the toast.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)[docs-i18n]follow-up: #8566🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.