mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #2083] [MERGED] Map remote storage IO failures to 503 #5425
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#5425
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/2083
Author: @cha1latte
Created: 6/3/2026
Status: ✅ Merged
Merged: 6/3/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/2060-remote-storage-io-errors📝 Commits (2)
5de56f3Fix remote storage IO HTTP status451a638Address storage IO review feedback📊 Changes
1 file changed (+105 additions, -12 deletions)
View changed files
📝
src-tauri/src/http_server.rs(+105 -12)📄 Description
Linked issue
Closes #2060
Why this change
/api/invokecommands could return a generic HTTP 500 when the underlying storage failed because it was read-only, locked, busy, full, or otherwise unavailable at command time.What changed
AppErrorstatus mapping into a small helper insrc-tauri/src/http_server.rs.io_errorsignals to HTTP 503 Service Unavailable.io_errorresponses on HTTP 500 so unrelated internal IO errors are not masked.Refactor impact
Primary owner:
Rust storage / remote runtime
Impact areas reviewed:
/api/invoke.code,message,details) remains unchanged.Boundary notes:
src-tauri/src/http_server.rs; no React, engine, shared API, schema, dependency, prompt, auth, or storage format changes.AppError.Pressure points touched:
HttpError::into_response.Validation
pnpm typecheck,pnpm build,pnpm check:architecture,pnpm check:docs, or fullpnpm checkwhen warranted)pnpm checkpasses before PR push/handoffManual verification notes
cargo test --manifest-path src-tauri/Cargo.toml io_errors_map_to_storage_unavailable_http_statusfailed withleft: 500,right: 503.cargo test --manifest-path src-tauri/Cargo.toml http_statuspassed for read-only/permission-denied and locked-database IO status mapping.cargo test --manifest-path src-tauri/Cargo.toml uncategorized_io_errors_keep_internal_server_error_statuspassed for the generic IO negative control.cargo check --manifest-path src-tauri/Cargo.tomlpassed.pnpm check:architecturepassed.pnpm check:frontendpassed.pnpm check:rustpassed.pnpm check:docspassed.pnpm check:discoverypassed.pnpm check:unusedpassed.git diff --checkpassed.pnpm checkis currently blocked before code checks by unrelated CRLF line-ending baseline failures in.github/workflows/bunny-review-command.yml,DESIGN.md, andcustom_components/marinara_engine/{button.py,http.py,select.py,webhook.py}.Feature Discoverability
Check exactly one:
src/features/shell/discovery/because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.Reason:
Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdUI evidence
N/A. This is a non-UI Remote Runtime HTTP error-mapping fix.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.