mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3940] [Feature]: Keep Professor Mari's task result on tab resume + alert when she needs input #2127
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#2127
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?
Originally created by @Gunterlie on GitHub (Jul 22, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3940
What problem does this solve?
When you give Professor Mari a task and then leave — background the tab, lock the phone, switch to another chat — the browser suspends the tab and the SSE stream socket goes half-open. On return,
reader.read()never settles, so the generation looks frozen: the reply she actually finished (the server keeps generating after a passive client disconnect and saves it) does not appear, and no notification fires. Only sending a new command unblocks the zombie stream and pulls the result in.Separately, when Mari finishes and is blocked waiting on your approval to apply a workspace change, there is nothing to pull you back if you have stepped away — you only find out by returning and looking.
Proposed solution
/generate/status, refetches the finished reply, and fires the existing "reply ready" notification. No new streaming/reconnect infrastructure.Alternatives considered
Additional context
Server already continues non-impersonate generations after a client disconnect (
generate.routes.ts), and/api/generate/status/:chatIdreports active generations — so this is a client re-sync + notification gap, not a server one.Known limitation: if the app is fully closed (or a self-hosted server is stopped with it), generation cannot continue / notify. Covers backgrounded tab, locked phone, and switched chat.
Template check
@Gunterlie commented on GitHub (Jul 22, 2026):
Work in progress by @Gunterlie — draft PR #3941 (branch
mari-task-persistence, targetingstaging).