[GH-ISSUE #537] [Feature]: Clarify updater apply availability in the frontend #247

Closed
opened 2026-10-20 17:26:46 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @cha1latte on GitHub (May 7, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/537

What problem does this solve?

Users can see available updates in the Marinara frontend, but the Apply Update action is confusing when the running build does not expose server-side update application.

In the Discord report, the user was unsure whether this was a bug or a missing setting because applying updates from the frontend did not work, while closing and relaunching the app usually applied updates. Another user noted that their UI showed many available updates, such as "26 updates," which also caused confusion.

Professor Mari's diagnosis found that this is currently gated by the backend rather than necessarily a broken updater. The update apply route returns 403 with Auto-update apply is disabled when isUpdatesApplyEnabled() is false and tells users to set UPDATES_APPLY_ENABLED=true. Even with that enabled, server-side apply only works for supported install modes, such as git-based installs. Docker or standalone-style paths are rejected separately. The visible update count is also based on commit-behind tracking against origin/main, not necessarily tagged releases.

The current UX makes the frontend look like it should be able to apply updates, then fails after the user clicks. Users need clearer in-app messaging about whether their install can apply updates directly, whether they should relaunch, or whether they need to update manually.

Proposed solution

Improve the updater UI so it reflects the backend update-apply capability before the user clicks Apply Update.

Possible changes:

  • Hide or disable Apply Update when server-side apply is not available for the current install.
  • Show a clear explanation such as "Relaunch to update," "Server-side update apply is disabled for this install," or "Manual update required."
  • If the backend exposes or can expose a capability flag, have the frontend use that instead of discovering the limitation only after the apply request fails.
  • Clarify that the displayed update count is commits behind origin/main, not necessarily the number of tagged releases.
  • Keep the existing error handling, but make the normal expected path clearer for packaged or launcher installs where relaunching applies updates.

Alternatives considered

Leave the current behavior as-is and rely on the backend error toast. This is technically accurate but confusing because the action appears available until it fails.

Another alternative is to document the limitation only in troubleshooting docs, but the confusion happens directly in the updater UI, so inline messaging would likely help more.

Additional context

Discord report: https://discord.com/channels/1417099416812392641/1502078195372134550

Reported environment:

  • Release: v1.5.8
  • Build: 7e37df8

Relevant diagnosis from Professor Mari:

  • Apply Update is gated by isUpdatesApplyEnabled().
  • When disabled, the route returns 403 with Auto-update apply is disabled.
  • The backend message says to set UPDATES_APPLY_ENABLED=true to enable server-side update application.
  • Server-side apply is separately limited to supported install/update paths, such as git-based installs.
  • The visible "updates" count is commit-behind tracking against origin/main, not necessarily tagged releases.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @cha1latte on GitHub (May 7, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/537 ## What problem does this solve? Users can see available updates in the Marinara frontend, but the Apply Update action is confusing when the running build does not expose server-side update application. In the Discord report, the user was unsure whether this was a bug or a missing setting because applying updates from the frontend did not work, while closing and relaunching the app usually applied updates. Another user noted that their UI showed many available updates, such as "26 updates," which also caused confusion. Professor Mari's diagnosis found that this is currently gated by the backend rather than necessarily a broken updater. The update apply route returns `403` with `Auto-update apply is disabled` when `isUpdatesApplyEnabled()` is false and tells users to set `UPDATES_APPLY_ENABLED=true`. Even with that enabled, server-side apply only works for supported install modes, such as git-based installs. Docker or standalone-style paths are rejected separately. The visible update count is also based on commit-behind tracking against `origin/main`, not necessarily tagged releases. The current UX makes the frontend look like it should be able to apply updates, then fails after the user clicks. Users need clearer in-app messaging about whether their install can apply updates directly, whether they should relaunch, or whether they need to update manually. ## Proposed solution Improve the updater UI so it reflects the backend update-apply capability before the user clicks Apply Update. Possible changes: - Hide or disable Apply Update when server-side apply is not available for the current install. - Show a clear explanation such as "Relaunch to update," "Server-side update apply is disabled for this install," or "Manual update required." - If the backend exposes or can expose a capability flag, have the frontend use that instead of discovering the limitation only after the apply request fails. - Clarify that the displayed update count is commits behind `origin/main`, not necessarily the number of tagged releases. - Keep the existing error handling, but make the normal expected path clearer for packaged or launcher installs where relaunching applies updates. ## Alternatives considered Leave the current behavior as-is and rely on the backend error toast. This is technically accurate but confusing because the action appears available until it fails. Another alternative is to document the limitation only in troubleshooting docs, but the confusion happens directly in the updater UI, so inline messaging would likely help more. ## Additional context Discord report: https://discord.com/channels/1417099416812392641/1502078195372134550 Reported environment: - Release: `v1.5.8` - Build: `7e37df8` Relevant diagnosis from Professor Mari: - `Apply Update` is gated by `isUpdatesApplyEnabled()`. - When disabled, the route returns `403` with `Auto-update apply is disabled`. - The backend message says to set `UPDATES_APPLY_ENABLED=true` to enable server-side update application. - Server-side apply is separately limited to supported install/update paths, such as git-based installs. - The visible "updates" count is commit-behind tracking against `origin/main`, not necessarily tagged releases. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:26:46 +07:00
Author
Owner

@cha1latte commented on GitHub (May 7, 2026):

Triage note: labeling this as normal-scope because the request is a focused UX clarification around an existing updater capability gate, not a new update system.

Expose or derive the backend apply capability in the updater UI, then adjust the action state and copy so users know whether to relaunch, apply in-app, or update manually.

<!-- gh-comment-id:4401801920 --> @cha1latte commented on GitHub (May 7, 2026): Triage note: labeling this as `normal-scope` because the request is a focused UX clarification around an existing updater capability gate, not a new update system. Expose or derive the backend apply capability in the updater UI, then adjust the action state and copy so users know whether to relaunch, apply in-app, or update manually.
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#247
No description provided.