mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1374] [MERGED] Fix refactor update check handoff #5044
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#5044
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
ed8018fFix refactor update check handoff043af0cAddress 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
What changed
update_checkandupdate_applyTauri commands plus remote-runtime/api/invokedispatch.updatesApiand Settings > Advanced controls for checking releases and opening the release page.vX.Y.Ztag filtering, confirm-required apply handoff, and official GitHub release URL fallback for untrusted URLs.README.md.Refactor impact
Primary owner:
Rust/Tauri command surface and shared API.
Impact areas reviewed:
Boundary notes:
src-tauri/src/commands/storage/updates.rsowns release lookup and the manual-update response.src/shared/api/updates-api.tsis the typed client wrapper; feature UI does not callinvokeTauridirectly.update_checkandupdate_apply.Pressure points touched:
src-tauri/src/lib.rscommand registrationsrc-tauri/src/http_dispatch.rsremote runtime dispatchsrc/features/shell/settings/components/SettingsPanel.tsxAdvanced settingssrc/shared/api/remote-runtime.tscommand allowlistValidation
pnpm checkpasses locallypnpm typecheckpasses locallypnpm buildpasses locallypnpm check:architecturepasses locallypnpm check:docspasses locallycargo check --manifest-path src-tauri/Cargo.toml --workspacepasses locallyManual verification notes
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.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.cargo test --manifest-path src-tauri\Cargo.toml dispatch_supports_remote_update_apply_manual_path; 1 test passed, covering remote/api/invokedispatch into the manual update handoff.pnpm checkon the merged currentupstream/refactorhead; it passed.scratch\bugfix-verification.json; it passed.Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdUI 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
Documentation
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.