[GH-ISSUE #4756] [Feature]: One-time localized post-migration notice explaining the sharded storage upgrade (ELI5 + technical toggle) #2616

Closed
opened 2026-10-21 05:51:28 +07:00 by bsakaguchi · 2 comments
Owner

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:

  • Disk usage of chat data roughly doubles. The renamed .pre-shard monoliths 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.
  • Familiar files disappear. Anyone who scripts against, syncs, or just knows about tables/messages.json finds it replaced by a messages/ directory of per-chat files.
  • Downgrades start being refused. The launcher/updater guard blocks older targets with a message about "storage format" — technically accurate, but the first time a user meets the concept.

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:

  • Simple (default, ELI5): "Marinara reorganized how your chats are saved: each chat now has its own files instead of everything living in one big file. Long chats save much faster. Nothing was lost — your old files were kept as backups (that's why disk usage went up). You can delete the backups later once everything looks right, and if you ever need an older Marinara version, there's a guide for that."
  • Technical (toggle): per-chat shard layout, storage format number, the .pre-shard backup naming and how to reclaim the space, the downgrade guard + unshard escape hatch, links to docs/development/file-storage.md and the TROUBLESHOOTING § "Chats show no messages after switching to an older version".

Details:

  • Localization: all strings through the standard locale system (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.
  • Trigger/persistence sketch: the store knows when it migrated (migrateMonolithToShards); persist a small marker (e.g. migratedFromFormat + timestamp in storage/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.
  • Also useful going forward: the same mechanism can announce future format bumps (format 4 → N) without new plumbing.

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.

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: - **Disk usage of chat data roughly doubles.** The renamed `.pre-shard` monoliths 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. - **Familiar files disappear.** Anyone who scripts against, syncs, or just knows about `tables/messages.json` finds it replaced by a `messages/` directory of per-chat files. - **Downgrades start being refused.** The launcher/updater guard blocks older targets with a message about "storage format" — technically accurate, but the first time a user meets the concept. 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: - **Simple (default, ELI5):** "Marinara reorganized how your chats are saved: each chat now has its own files instead of everything living in one big file. Long chats save much faster. Nothing was lost — your old files were kept as backups (that's why disk usage went up). You can delete the backups later once everything looks right, and if you ever need an older Marinara version, there's a guide for that." - **Technical (toggle):** per-chat shard layout, storage format number, the `.pre-shard` backup naming and how to reclaim the space, the downgrade guard + `unshard` escape hatch, links to `docs/development/file-storage.md` and the TROUBLESHOOTING § "Chats show no messages after switching to an older version". Details: - **Localization:** all strings through the standard locale system (`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. - **Trigger/persistence sketch:** the store knows when it migrated (`migrateMonolithToShards`); persist a small marker (e.g. `migratedFromFormat` + timestamp in `storage/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. - **Also useful going forward:** the same mechanism can announce future format bumps (format 4 → N) without new plumbing. ### 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.
bsakaguchi 2026-10-21 05:51:28 +07:00
Author
Owner

@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).

<!-- gh-comment-id:5226769393 --> @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).
Author
Owner

@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.

<!-- gh-comment-id:5226956623 --> @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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#2616
No description provided.