[PR #1374] [MERGED] Fix refactor update check handoff #5044

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

📋 Pull Request Information

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

Base: refactor ← Head: fix/refactor-issue-1348-updater


📝 Commits (2)

  • ed8018f Fix refactor update check handoff
  • 043af0c Address updater review feedback

📊 Changes

9 files changed (+505 additions, -1 deletions)

View changed files

📝 README.md (+1 -0)
📝 src-tauri/src/commands/storage.rs (+4 -0)
➕ src-tauri/src/commands/storage/commands/updates.rs (+13 -0)
➕ src-tauri/src/commands/storage/updates.rs (+333 -0)
📝 src-tauri/src/http_dispatch.rs (+31 -1)
📝 src-tauri/src/lib.rs (+2 -0)
📝 src/features/shell/settings/components/SettingsPanel.tsx (+87 -0)
📝 src/shared/api/remote-runtime.ts (+2 -0)
➕ src/shared/api/updates-api.ts (+32 -0)

📄 Description

Linked issue

Closes #1348

Why this change

  • The refactor branch had no explicit replacement for the legacy update checker/apply routes, which could leave users without an in-app update path.
  • This restores a bounded Tauri-era update surface without pretending signed automatic Tauri installs are configured.

What changed

  • Added update_check and update_apply Tauri commands plus remote-runtime /api/invoke dispatch.
  • Added a typed client updatesApi and Settings > Advanced controls for checking releases and opening the release page.
  • Added release/manual-update guardrails: stable vX.Y.Z tag filtering, confirm-required apply handoff, and official GitHub release URL fallback for untrusted URLs.
  • Documented the refactor branch behavior in README.md.

Refactor impact

Primary owner:

Rust/Tauri command surface and shared API.

Impact areas reviewed:

  • App shell settings UI
  • Shared API wrappers
  • Tauri command registration
  • Hostable remote runtime dispatch
  • Release/distribution behavior

Boundary notes:

  • src-tauri/src/commands/storage/updates.rs owns release lookup and the manual-update response.
  • src/shared/api/updates-api.ts is the typed client wrapper; feature UI does not call invokeTauri directly.
  • Remote runtime allowlisting is explicit for update_check and update_apply.
  • Automatic Tauri install is intentionally not implemented because signed updater artifacts, a public key, and updater endpoints are not configured on this branch.

Pressure points touched:

  • src-tauri/src/lib.rs command registration
  • src-tauri/src/http_dispatch.rs remote runtime dispatch
  • src/features/shell/settings/components/SettingsPanel.tsx Advanced settings
  • src/shared/api/remote-runtime.ts command allowlist

Validation

  • pnpm check passes locally
  • pnpm typecheck passes locally
  • pnpm build passes locally
  • pnpm check:architecture passes locally
  • pnpm check:docs passes locally
  • cargo check --manifest-path src-tauri/Cargo.toml --workspace passes locally
  • Rust clippy/tests were run for Rust behavior changes
  • Browser or Tauri app manual verification completed
  • Playwright, screenshot, or recording evidence added for UI changes
  • Remote runtime smoke checked when relevant

Manual verification notes

  • Codex ran node scratch\issue-1348-updates-surface-repro.mjs; it passed and confirmed embedded command registration, remote dispatch, remote allowlist, and the typed client API are present.
  • Codex ran cargo test --manifest-path src-tauri\Cargo.toml updates::tests; 5 tests passed, covering stable tag filtering, semver comparison, confirmed manual apply, unconfirmed apply rejection, and untrusted release URL fallback.
  • Codex ran cargo test --manifest-path src-tauri\Cargo.toml dispatch_supports_remote_update_apply_manual_path; 1 test passed, covering remote /api/invoke dispatch into the manual update handoff.
  • Codex ran pnpm check on the merged current upstream/refactor head; it passed.
  • Codex ran the Marinara proof gate against scratch\bugfix-verification.json; it passed.
  • Codex opened the Vite app in Playwright, navigated to Settings > Advanced, and confirmed the App Updates controls render.
  • Manual limitation: signed Tauri automatic install was not tested because this branch does not configure updater signing/public-key/endpoints. This PR exposes a manual-release update handoff instead.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

UI evidence

Local Playwright verification confirmed Settings > Advanced renders the App Updates controls. No GitHub-hosted screenshot is attached because the captured evidence is local-only and should not be treated as reviewer-visible.

Summary by CodeRabbit

  • New Features

    • Added "App Updates" in Settings > Advanced: check for updates, view current vs latest version, open the release page for manual installation, and receive toasts for check/apply results. Automatic in-app installation is not configured; manual update flow is used.
  • Documentation

    • README updated to describe the Advanced settings update check and the manual-installation note.

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/1374 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/27/2026 **Status:** ✅ Merged **Merged:** 5/27/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `refactor` ← **Head:** `fix/refactor-issue-1348-updater` --- ### 📝 Commits (2) - [`ed8018f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ed8018fcb38d834b78c3f7d91383c1828f174150) Fix refactor update check handoff - [`043af0c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/043af0c9c71a39c2f64ae97eeee60da6a8dab618) Address updater review feedback ### 📊 Changes **9 files changed** (+505 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+1 -0) 📝 `src-tauri/src/commands/storage.rs` (+4 -0) ➕ `src-tauri/src/commands/storage/commands/updates.rs` (+13 -0) ➕ `src-tauri/src/commands/storage/updates.rs` (+333 -0) 📝 `src-tauri/src/http_dispatch.rs` (+31 -1) 📝 `src-tauri/src/lib.rs` (+2 -0) 📝 `src/features/shell/settings/components/SettingsPanel.tsx` (+87 -0) 📝 `src/shared/api/remote-runtime.ts` (+2 -0) ➕ `src/shared/api/updates-api.ts` (+32 -0) </details> ### 📄 Description ## Linked issue Closes #1348 ## Why this change - The refactor branch had no explicit replacement for the legacy update checker/apply routes, which could leave users without an in-app update path. - This restores a bounded Tauri-era update surface without pretending signed automatic Tauri installs are configured. ## What changed - Added `update_check` and `update_apply` Tauri commands plus remote-runtime `/api/invoke` dispatch. - Added a typed client `updatesApi` and Settings > Advanced controls for checking releases and opening the release page. - Added release/manual-update guardrails: stable `vX.Y.Z` tag filtering, confirm-required apply handoff, and official GitHub release URL fallback for untrusted URLs. - Documented the refactor branch behavior in `README.md`. ## Refactor impact Primary owner: Rust/Tauri command surface and shared API. Impact areas reviewed: - App shell settings UI - Shared API wrappers - Tauri command registration - Hostable remote runtime dispatch - Release/distribution behavior Boundary notes: - `src-tauri/src/commands/storage/updates.rs` owns release lookup and the manual-update response. - `src/shared/api/updates-api.ts` is the typed client wrapper; feature UI does not call `invokeTauri` directly. - Remote runtime allowlisting is explicit for `update_check` and `update_apply`. - Automatic Tauri install is intentionally not implemented because signed updater artifacts, a public key, and updater endpoints are not configured on this branch. Pressure points touched: - `src-tauri/src/lib.rs` command registration - `src-tauri/src/http_dispatch.rs` remote runtime dispatch - `src/features/shell/settings/components/SettingsPanel.tsx` Advanced settings - `src/shared/api/remote-runtime.ts` command allowlist ## Validation - [ ] `pnpm check` passes locally - [ ] `pnpm typecheck` passes locally - [ ] `pnpm build` passes locally - [ ] `pnpm check:architecture` passes locally - [ ] `pnpm check:docs` passes locally - [ ] `cargo check --manifest-path src-tauri/Cargo.toml --workspace` passes locally - [ ] Rust clippy/tests were run for Rust behavior changes - [ ] Browser or Tauri app manual verification completed - [ ] Playwright, screenshot, or recording evidence added for UI changes - [ ] Remote runtime smoke checked when relevant ### Manual verification notes - Codex ran `node scratch\issue-1348-updates-surface-repro.mjs`; it passed and confirmed embedded command registration, remote dispatch, remote allowlist, and the typed client API are present. - Codex ran `cargo test --manifest-path src-tauri\Cargo.toml updates::tests`; 5 tests passed, covering stable tag filtering, semver comparison, confirmed manual apply, unconfirmed apply rejection, and untrusted release URL fallback. - Codex ran `cargo test --manifest-path src-tauri\Cargo.toml dispatch_supports_remote_update_apply_manual_path`; 1 test passed, covering remote `/api/invoke` dispatch into the manual update handoff. - Codex ran `pnpm check` on the merged current `upstream/refactor` head; it passed. - Codex ran the Marinara proof gate against `scratch\bugfix-verification.json`; it passed. - Codex opened the Vite app in Playwright, navigated to Settings > Advanced, and confirmed the App Updates controls render. - Manual limitation: signed Tauri automatic install was not tested because this branch does not configure updater signing/public-key/endpoints. This PR exposes a manual-release update handoff instead. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [ ] Confirmed this PR does not restore old staging/package-workspace/release claims ## UI evidence Local Playwright verification confirmed Settings > Advanced renders the App Updates controls. No GitHub-hosted screenshot is attached because the captured evidence is local-only and should not be treated as reviewer-visible. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added "App Updates" in Settings > Advanced: check for updates, view current vs latest version, open the release page for manual installation, and receive toasts for check/apply results. Automatic in-app installation is not configured; manual update flow is used. * **Documentation** * README updated to describe the Advanced settings update check and the manual-installation note. <!-- 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/1374?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack) <!-- 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:12:44 +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#5044
No description provided.