mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7700] [MERGED] fix(mari): give a refused question back to the composer #7886
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#7886
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/7700
Author: @Gunterlie
Created: 10/15/2026
Status: ✅ Merged
Merged: 10/16/2026
Merged by: @Gunterlie
Base:
staging← Head:fix/mari-failed-send-composer📝 Commits (8)
1db4beefix(mari): give an unsaved question back to the composer when a send fails69ee8a1fix(mari): never drop the failed question when the composer is busye73ecb1fix(mari): hold the send until failure recovery lands; count saved questions, not text17fd7cdfix(mari): detect the saved question by the newest saved id, not a count65d9a3ffix(mari): reload the chat this send created when the first send fails4dd7ae0Merge remote-tracking branch 'origin/staging' into fix/mari-failed-send-composerb695d22fix(mari): keep failure recovery's reload from being cancelled; load the baseline for a cold send27e23f2test(mari): match the sending guard on the run-end reload📊 Changes
7 files changed (+94 additions, -19 deletions)
View changed files
📝
packages/client/src/components/chat/HomeProfessorMariChat.tsx(+39 -15)📝
packages/client/src/components/chat/mari/mari-chat-helpers.tsx(+10 -1)📝
packages/client/src/components/chat/mari/mari-tool-presentation.ts(+13 -0)📝
packages/client/src/components/chat/mari/use-mari-message-actions.ts(+1 -0)📝
packages/client/src/components/chat/mari/use-mari-workspace-run.ts(+8 -2)📝
scripts/regressions/command-center.regression.ts(+1 -1)➕
scripts/regressions/professor-mari/saved-user-message.regression.ts(+22 -0)📄 Description
Why
A user on a Docker instance reached over Tailscale (no admin secret) asked Professor Mari a question. The send failed with the access error, and the question disappeared. The error card offered Retry, but the user wanted to change the message before sending it again.
Root cause:
/professor-mari/workspace/promptrefuses the request before it saves the message.failRunthen reloads the thread from the server, and that reload replaces the optimistic bubble, so the question vanishes.No linked issue: reported on Discord.
What changed
sendinguntil the failure reload lands, so a new send cannot start under it.findSavedUserMessageis extracted from the retry path unchanged and covered by a small regression.Validation
pnpm checkpassed (before the review follow-ups); clienttsc, ESLint and Prettier re-run on the changed files after each follow-up.scripts/regressions/professor-mari/saved-user-message.regression.tspasses.findSavedUserMessage) predates this PR, and an unsaved question now retries from the composer, which does not use that path.Manual verification
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.