mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #4756] [Feature]: One-time localized post-migration notice explaining the sharded storage upgrade (ELI5 + technical toggle) #2616
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#2616
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 (Aug 8, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4756
Originally assigned to: @kolacheee on GitHub.
Problem
The sharded-storage migration (#4735 / #4738 / #4754) is automatic and invisible in the UI — per the approved plan on #4708, there is deliberately no opt-out. But it has side effects a user can see, and today nothing explains them:
.pre-shardmonoliths are the automatic pre-migration backup and are never deleted by the Engine. A user who checks their data folder or gets a low-disk warning has no idea why.tables/messages.jsonfinds it replaced by amessages/directory of per-chat files.Each of these is a predictable "is something broken?" support ticket that a one-time explanation would defuse. Most users won't know what "sharding" means or that it's why long chats now save faster — the change deserves a moment of credit and of transparency.
Proposal
A one-time, dismissible post-migration notice, shown on the first client load after the store performed a shard migration — same UX family as the agents/capability-package update notification, but purely informational (no choice to make; the migration has already happened and that's by design).
Content, in two togglable renderings:
.pre-shardbackup naming and how to reclaim the space, the downgrade guard +unshardescape hatch, links todocs/development/file-storage.mdand the TROUBLESHOOTING § "Chats show no messages after switching to an older version".Details:
packages/client/src/localization/locales/), shown in the user's UI language with the usual English fallback — so translations ride the existing language-pack workflow, no bespoke mechanism.migrateMonolithToShards); persist a small marker (e.g.migratedFromFormat+ timestamp instorage/manifest.json, or a one-time app-settings flag) that the client reads once and clears on dismissal. Survives the notice being missed on a headless first boot.What this is explicitly NOT
Not an opt-in/opt-out prompt. The no-opt-out decision is settled on #4708 (maintainer decision 2, re-confirmed since) — offering "keep legacy" would mean maintaining dual formats forever, which is what that decision refused. This notice is the transparency that makes the no-choice migration feel respectful instead of silent.
Context
Original suggestion by @kolacheee (relayed): an upgrade pop-up with togglable ELI5/technical explanations, translated per UI language — reshaped here from an install-or-not choice into a post-migration notice to match the settled #4708 plan.
@kolacheee commented on GitHub (Aug 8, 2026):
Thanks for the approval - implementation starting now (kolacheee). Building it as specced: server-side marker written by the shard migration + a read/acknowledge endpoint, a one-time dismissible client notice in the same UX family as the package-update notification with the simple/technical toggle, and all strings through the standard locale system. Will be a PR stacked on #4754 (it hooks into the migration code that ships there).
@kolacheee commented on GitHub (Aug 8, 2026):
Implementation is up as draft PR #4762. Built as specced: the store persists a durable marker after a real shard-migration boot (headless first boots cannot lose it), the client shows a one-time modal in the What's New sequencing family with ELI5 default + technical toggle + a storage-guide link, dismissal acknowledges server-side, and every string rides the locale system with English fallback. Live-verified end to end against a real format-2 fixture, including the failure path (a failed acknowledge keeps the modal closed for the session and re-shows next launch). The pre-PR adversarial review caught a dismissal-reopen loop and a prompter-suppression latch the first live pass missed - both fixed and re-verified.