mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #5821] [MERGED] fix(mari): label the Accept action for held edits and offer a decline #6954
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#6954
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/5821
Author: @kolacheee
Created: 9/3/2026
Status: ✅ Merged
Merged: 9/3/2026
Merged by: @kolacheee
Base:
staging← Head:fix/5819-5820-mari-apply-clarity📝 Commits (2)
7831442fix(mari): check completion claims mid-run and label the Accept action (#5819, #5820)78811b9fix(mari): drop the mid-run claim guard, harden the Accept row (review)📊 Changes
5 files changed (+106 additions, -7 deletions)
View changed files
📝
CHANGELOG.md(+3 -1)📝
packages/client/src/components/chat/HomeProfessorMariChat.tsx(+22 -6)📝
packages/client/src/localization/locales/en.json(+1 -0)📝
packages/shared/src/types/professor-mari-workspace.ts(+32 -0)📝
scripts/regressions/mari-polish.regression.ts(+48 -0)📄 Description
Linked issue
Closes #5820
(#5819 was in this branch and has been withdrawn — see below.)
Why this change
Mari holds edits for approval and says "hit Accept and I'll apply the changes". The Accept button is genuinely rendered — directly under the caption "Suggestions only. Pick one, or type your own." So the one control that applies her pending edits is explicitly labelled optional, and the reporter's conclusion was the natural one: "I do not see anywhere to apply or revert edits, much less if she even did them."
The diagnostics confirm the engine did its job (
held for approval; app_data character.update). Everything worked except telling the user — which means the visible half of the defer-and-approve safety mechanism reads as a failure of it, and likely inflates "she said she did it and nothing happened" reports.What changed
Don't applychip sits beside Accept, so refusing no longer means composing a sentence — the "or revert" half of the report.withHeldChangeDeclineChip.authorization-acceptfor an unrelated output-limit chip ("Continue the task."). A sharedisMariHeldChangeApprovalChipmatches id and prompt, so the approval wording and the decline action never appear on a row where nothing is held.On #5819 (withdrawn from this PR)
This branch originally also extended the completion-claim guard to mid-run frames. An adversarial review showed that fix was both incomplete and unsafe, so it is reverted rather than shipped:
resolveWorkspaceMutationVerificationcollapses the whole run into one verdict, so once any create succeeds the aggregate readsverifiedand every later false claim in the batch passes. It therefore only caught runs where nothing applied — not the reported symptom of a partially successful batch.commandResultsForContinuityis per-run, so a continuation run accurately recapping earlier work resolved tononeand was told to redo it.A correct fix needs step-scoped auditing (a watermark over results since the last audited claim), read-first coaching, and continuation handling. Findings are posted on #5819.
Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
mari-polish(new pins for the caption predicate, both decline call sites, and the id-collision guard), plusprompt,mari-ask-latch,mari-write-readback; both package lints;check-locales;pnpm build.Don't applyappears beside Accept without reloading, and that after a reload both are still there. Also worth confirming the output-limit "Accept / Continue the task." row still reads as suggestions rather than an approval prompt.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)
Screenshots in #5820 show the current misleading caption; the manual pass above covers the corrected row.
Summary by CodeRabbit
New Features
Bug Fixes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.