mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5753] Mari suggestion chips live in one app-wide slot that unrelated paths clear (regular-chat generation, suggestions-disabled mount sweeps) #3181
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#3181
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 @kolacheee on GitHub (Sep 2, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5753
Originally assigned to: @kolacheee on GitHub.
In one sentence: Professor Mari's suggestion chips live in a single app-wide store slot that unrelated code paths clear, so chips vanish on navigation — observed live when a held proposal's Accept button disappeared after leaving and returning to the chat.
What happened
During a playtest of the #5748 branch, a deferred (held) proposal showed its Accept chip; the user opened the Chats popover looking for a new-chat affordance, returned to the chat, and the Accept button was gone.
The load-bearing case is already fixed: PR #5751 makes the client re-derive the
authorization-acceptchip from the persistedmariDeferredMutationsmessage extra, so a held proposal's Accept now survives navigation, reloads, and every clear path below. This issue tracks the underlying store design and the remaining clear-path inconsistencies, which still affect ordinary suggestion chips.The clear paths (all verified in source)
use-generate.ts(~line 1286): when any regular chat the user is viewing starts a generation, it callsclearMariChips()— the slot is app-wide (agent.store.ts: onemariChips+mariChipsChatIdpair), so generating in a roleplay chat destroys chips that belong to a Mari chat.authorization-acceptthrough even when the user disabled Mari suggestions (HomeProfessorMariChat, thesuggestionsevent handler). But three mount effects — HomeProfessorMariChat ~3371, ChatInput ~621, ConversationInput ~645 — runif (professorMariSuggestionsEnabled) return; clearMariChips();on mount, clearing everything including the exempted Accept chip. With suggestions disabled, any remount of those composers wiped a pending approval affordance.loadMessages(..., { clearSuggestions })in HomeProfessorMariChat clears chips when passed — no call site passes it. Harmless, but dead weight that invites accidental use.Possible directions (maintainer's call)
Record<chatId, chips>(or at least stop clearing whenmariChipsChatIdbelongs to a different chat than the one doing the clearing). Path 1 then cannot cross surfaces.authorization-acceptexemption the delivery path has — or drop the sweeps entirely now that rendering already filters by the setting.clearSuggestionsoption.Low urgency now that the approval chip is derivation-backed; ordinary suggestion chips are ephemeral by design, so the main cost today is mild inconsistency rather than lost function.
@kolacheee commented on GitHub (Sep 2, 2026):
Implementation starting (kolacheee, via Claude session) - combined PR with #5752 and #5754 on branch fix/5752-5754-mari-polish.