[GH-ISSUE #8236] [Feature]: Allow users to configure Personal Extension revision history retention #8171

Closed
opened 2026-10-25 04:03:12 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @minikkeuen on GitHub (Oct 24, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8236

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

Personal and External Extensions currently retain up to 10 previous revisions, with no option to change this limit.

Each revision stores a copy of the extension's code, including JavaScript, CSS, and server-side JavaScript. Extensions that are frequently updated can accumulate unnecessary historical data, increasing storage usage.

Users who rarely need revision history, or who prefer to keep fewer backups, cannot reduce this overhead.

Proposed solution

Add a configurable revision history retention limit for Personal and External Extensions.

  • Allow users to select a retention limit from 0 to 10 revisions.
  • Keep 10 revisions as the default to preserve existing behavior.
  • Apply the setting globally to all Personal and External Extensions.
  • Automatically remove older revisions when the retention limit is reduced, keeping the most recent revisions.
  • Apply the configured limit to future extension updates and rollbacks, including modifications made through Professor Mari.
  • Preserve the current extension code, extension ID, enabled state, approval state, and saved extension data.
  • Display a confirmation warning before permanently removing existing revisions.

The setting could be placed under Settings → Addons → Extension revision history.

Alternatives considered

Keep the existing fixed limit of 10 revisions

This preserves the current behavior but does not allow users to reduce unnecessary storage usage.

Remove revision history entirely

This would reduce storage usage but eliminate a useful recovery feature.

Automatically prune revisions based on age or storage size

This could provide more flexibility but would introduce additional complexity compared to a simple retention count.

A configurable limit of 0–10 revisions provides a straightforward solution while maintaining backward compatibility.

Additional context

This proposal concerns the existing Personal and External Extension revision history system, not Capability Packages.

Reducing the retention limit would affect only stored historical revisions. Current extension code and user data would remain unchanged.

The proposed default of 10 ensures that existing users experience no change unless they explicitly adjust the setting.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @minikkeuen on GitHub (Oct 24, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8236 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? Personal and External Extensions currently retain up to 10 previous revisions, with no option to change this limit. Each revision stores a copy of the extension's code, including JavaScript, CSS, and server-side JavaScript. Extensions that are frequently updated can accumulate unnecessary historical data, increasing storage usage. Users who rarely need revision history, or who prefer to keep fewer backups, cannot reduce this overhead. ## Proposed solution Add a configurable revision history retention limit for Personal and External Extensions. - Allow users to select a retention limit from **0 to 10 revisions**. - Keep **10 revisions as the default** to preserve existing behavior. - Apply the setting globally to all Personal and External Extensions. - Automatically remove older revisions when the retention limit is reduced, keeping the most recent revisions. - Apply the configured limit to future extension updates and rollbacks, including modifications made through Professor Mari. - Preserve the current extension code, extension ID, enabled state, approval state, and saved extension data. - Display a confirmation warning before permanently removing existing revisions. The setting could be placed under **Settings → Addons → Extension revision history**. ## Alternatives considered **Keep the existing fixed limit of 10 revisions** This preserves the current behavior but does not allow users to reduce unnecessary storage usage. **Remove revision history entirely** This would reduce storage usage but eliminate a useful recovery feature. **Automatically prune revisions based on age or storage size** This could provide more flexibility but would introduce additional complexity compared to a simple retention count. A configurable limit of 0–10 revisions provides a straightforward solution while maintaining backward compatibility. ## Additional context This proposal concerns the existing Personal and External Extension revision history system, not Capability Packages. Reducing the retention limit would affect only stored historical revisions. Current extension code and user data would remain unchanged. The proposed default of 10 ensures that existing users experience no change unless they explicitly adjust the setting. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-26 04:03:15 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Oct 25, 2026):

Owner: @SpicyMarinara / Codex. I am addressing this in the assigned issue sweep on fix/sweep-mobile-settings-20261025, targeting staging. I will link the draft PR as soon as the first focused change is published.

<!-- gh-comment-id:6395864629 --> @SpicyMarinara commented on GitHub (Oct 25, 2026): Owner: @SpicyMarinara / Codex. I am addressing this in the assigned issue sweep on `fix/sweep-mobile-settings-20261025`, targeting `staging`. I will link the draft PR as soon as the first focused change is published.
Author
Owner

@SpicyMarinara commented on GitHub (Oct 25, 2026):

Implementation/investigation is in assigned draft PR #8302, targeting staging. Owner: @SpicyMarinara / Codex.

<!-- gh-comment-id:6395950251 --> @SpicyMarinara commented on GitHub (Oct 25, 2026): Implementation/investigation is in assigned draft PR #8302, targeting `staging`. Owner: @SpicyMarinara / Codex.
Author
Owner

@SpicyMarinara commented on GitHub (Oct 25, 2026):

Implemented in #8302, merged to staging as 51c7e9edac. Settings → Addons now offers global revision retention from 0–10 (default 10). Lowering retention or pruning surplus imported revisions requires confirmation; transactional proofs preserve active code, approval and saved data. Required PR gates and current-head review passed.

<!-- gh-comment-id:6396649055 --> @SpicyMarinara commented on GitHub (Oct 25, 2026): Implemented in #8302, merged to staging as 51c7e9edac615494adbc4fcd8dcf43432ba9b71f. Settings → Addons now offers global revision retention from 0–10 (default 10). Lowering retention or pruning surplus imported revisions requires confirmation; transactional proofs preserve active code, approval and saved data. Required PR gates and current-head review passed.
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#8171
No description provided.