[PR #866] [MERGED] Fix disabled updater apply guidance #4806

Closed
opened 2026-10-22 04:10:49 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/866
Author: @cha1latte
Created: 5/15/2026
Status: ✅ Merged
Merged: 5/15/2026
Merged by: @cha1latte

Base: staging ← Head: fix/issue-856-updater-disabled-apply


📝 Commits (1)

  • c23057a Fix disabled updater apply guidance

📊 Changes

2 files changed (+38 additions, -17 deletions)

View changed files

📝 packages/client/src/components/panels/SettingsPanel.tsx (+18 -7)
📝 packages/server/src/routes/updates.routes.ts (+20 -10)

📄 Description

Linked issue

Closes #856

Why this change

  • The updater apply path could surface Auto-update apply is disabled without a useful next step, leaving source/git install users unable to tell how to update manually.

What changed

  • Return manual update commands and structured unavailable reasons from the update apply/check responses.
  • Show the manual update command in Advanced settings when browser-based apply is unavailable.
  • Prefer the server's user-facing message in the update-apply error toast.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Codex repro before fix: pnpm --filter @marinara-engine/server exec tsx C:\tmp\Marinara-Engine-issue-856\scratch\issue-856-update-apply-repro.mjs returned 403 with error: "Auto-update apply is disabled" and only the UPDATES_APPLY_ENABLED=true hint.
  • Codex repro after fix: the same command returns 403 with message: "Update manually with: git pull && pnpm install && pnpm build && pnpm start...", applyUnavailableReason: "disabled", and manualUpdateCommand.
  • Codex baseline: pnpm check passed.
  • Playwright MCP screenshot capture was unavailable because the local MCP browser profile was locked; this issue is a backend/API error-path fix, and the raw before/after command outputs are saved locally under scratch/issue-856-before.json and scratch/issue-856-after.json.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

No version, schema, dependency, release metadata, or docs files were changed.

UI evidence (if applicable)

N/A. The issue is the update-apply API/error guidance; validation is the before/after route repro above.

Summary by CodeRabbit

Release Notes

  • Bug Fixes

    • Improved error messaging when update operations fail, displaying actionable guidance to users
  • New Features

    • Update UI now displays manual update commands tailored to your installation type and configuration, replacing generic placeholder text
    • Clearer messaging indicating why automatic updates are unavailable in your environment

Review Change Stack


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/866 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/15/2026 **Status:** ✅ Merged **Merged:** 5/15/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `staging` ← **Head:** `fix/issue-856-updater-disabled-apply` --- ### 📝 Commits (1) - [`c23057a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c23057a343d280b86ae87a7cd861017c8b246f2a) Fix disabled updater apply guidance ### 📊 Changes **2 files changed** (+38 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+18 -7) 📝 `packages/server/src/routes/updates.routes.ts` (+20 -10) </details> ### 📄 Description ## Linked issue <!-- Every PR should reference a feature request or issue report. If there isn't one yet, open one first to gather opinions: --> <!-- https://github.com/Pasta-Devs/Marinara-Engine/issues/new/choose --> Closes #856 ## Why this change <!-- What user problem, bug, or goal does this solve? --> - The updater apply path could surface `Auto-update apply is disabled` without a useful next step, leaving source/git install users unable to tell how to update manually. ## What changed <!-- List the key changes in this PR --> - Return manual update commands and structured unavailable reasons from the update apply/check responses. - Show the manual update command in Advanced settings when browser-based apply is unavailable. - Prefer the server's user-facing `message` in the update-apply error toast. ## Validation <!-- Required: include commands run and/or manual checks performed --> - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes <!-- Describe exactly what you tested in a real browser/app, step by step. --> <!-- ⚠️ If an AI agent filled out or ticked these boxes for you, treat them --> <!-- as a TO-DO LIST, not as proof the work is done. Verify each item yourself --> <!-- before submitting. If you haven't verified it, untick the box. --> - Codex repro before fix: `pnpm --filter @marinara-engine/server exec tsx C:\tmp\Marinara-Engine-issue-856\scratch\issue-856-update-apply-repro.mjs` returned `403` with `error: "Auto-update apply is disabled"` and only the `UPDATES_APPLY_ENABLED=true` hint. - Codex repro after fix: the same command returns `403` with `message: "Update manually with: git pull && pnpm install && pnpm build && pnpm start..."`, `applyUnavailableReason: "disabled"`, and `manualUpdateCommand`. - Codex baseline: `pnpm check` passed. - Playwright MCP screenshot capture was unavailable because the local MCP browser profile was locked; this issue is a backend/API error-path fix, and the raw before/after command outputs are saved locally under `scratch/issue-856-before.json` and `scratch/issue-856-after.json`. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) No version, schema, dependency, release metadata, or docs files were changed. ## UI evidence (if applicable) N/A. The issue is the update-apply API/error guidance; validation is the before/after route repro above. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes * **Bug Fixes** * Improved error messaging when update operations fail, displaying actionable guidance to users * **New Features** * Update UI now displays manual update commands tailored to your installation type and configuration, replacing generic placeholder text * Clearer messaging indicating why automatic updates are unavailable in your environment <!-- review_stack_entry_start --> [![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/Pasta-Devs/Marinara-Engine/pull/866) <!-- review_stack_entry_end --> <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:10:49 +07:00
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#4806
No description provided.