mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8545] [MERGED] feat(mari): ask questions on a card that ends her turn #8662
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#8662
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/8545
Author: @ylli-selmani
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @ylli-selmani
Base:
staging← Head:feat/mari-ask-tool📝 Commits (6)
8f2693efeat(mari): ask questions on a card that ends her turn5b306acfix(mari): count question cards the schema rejects4efbddetest(mari): let the header count include a question card534fd0dfix(mari): keep held writes out of the record, let checkboxes toggle fast43e6b4efix(mari): stop a double-click reaching the next question's checkboxes94b3f34fix(mari): stop a double-click on Back from re-picking an answer📊 Changes
19 files changed (+833 additions, -152 deletions)
View changed files
📝
docs/home/professor-mari.md(+2 -2)📝
packages/client/src/components/chat/HomeProfessorMariChat.tsx(+30 -42)📝
packages/client/src/components/chat/mari/MariOmnibarHeaderChrome.tsx(+5 -2)➕
packages/client/src/components/chat/mari/MariQuestionCard.tsx(+145 -0)📝
packages/client/src/components/chat/mari/MariTranscript.tsx(+0 -20)📝
packages/client/src/components/chat/mari/use-mari-workspace-run.ts(+0 -13)📝
packages/client/src/localization/locales/en.json(+7 -0)📝
packages/client/src/styles/mari.css(+47 -0)📝
packages/server/src/services/professor-mari/guided-sequences.ts(+13 -0)📝
packages/server/src/services/professor-mari/pi-runtime.ts(+114 -26)📝
packages/server/src/services/professor-mari/workspace-agent.service.ts(+68 -39)📝
packages/server/src/services/professor-mari/workspace-message-store.ts(+19 -2)📝
packages/server/src/services/professor-mari/workspace-skills.service.ts(+1 -1)📝
packages/shared/src/types/chat.ts(+2 -0)📝
packages/shared/src/types/professor-mari-workspace.ts(+99 -1)📝
scripts/regressions/command-center.regression.ts(+2 -2)📝
scripts/regressions/mari-polish.regression.ts(+1 -1)📝
scripts/regressions/mari/suggestions.regression.ts(+45 -0)📝
scripts/regressions/professor-mari/pi-runtime.regression.ts(+233 -1)📄 Description
Linked issue
Closes #8536
Part of #8533
Why this change
planadvanced chips locally and filled a draft, so what the user chose was never her next turn. Modern harnesses end the turn on a question card, and the answer is the next message.What changed
asktool on the pi and classic runtimes, replacingplanin the workspace. It takes 1-4 questions with 2-4 options each, an optional recommended pick and an optional multi-select. Calling it ends her turn.planstays for in-chat Mari, which still uses it.ask, even an invalidask, neither runs nor waits behind Accept. She is told why and can make the change after the answer. Three invalid cards in a run end it, so a stuck model does not pay for rounds up to the limit.MariQuestionCard, built on theMariHeldChangeCardframe andMariRowoptions. It shows one question at a time with Back, Next and Submit, and has a field for a typed answer. The header shows "Needs you", and chips are hidden while a card is up.extra.mariQuestions), so a reload keeps it. There is no SSE event and no store. Submit sends the answers as the next user message, and any later user message removes the card. There is no resolved card, because her words and the answer bubble are the record.mariWorkspaceContinuity, which is cut to length from the end.docs/home/professor-mari.md.Things to know when reviewing
plan. On pi, a skill that gets followed gets an unknown-tool error she can recover from. I left this alone rather than rewrite user-editable data.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Agent-run, for the reviewer to weigh and not as ticked proof:
pnpm checkexits 0, with one lint warning (serverRunin auseEffect).professor-mari/pi-runtime,mari/suggestions,professor-mari/round-review,mari/review-cards,prompt,mari/example-skill,mari-polish.Not yet checked. Manually verify in the browser:
sillytaverntheme. Only the dark default was seen.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)docs/home/professor-mari.mdis updated, and the[docs-i18n]follow-up is #8544.UI evidence (if applicable)
To be added from the manual run above.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.