mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1284] [MERGED] fix: expose remote image generation commands #5017
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#5017
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/1284
Author: @cha1latte
Created: 5/26/2026
Status: ✅ Merged
Merged: 5/26/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/refactor-issue-1231-image-runtime📝 Commits (3)
aa849e3fix: expose remote image generation commandsdb349e6Merge remote-tracking branch 'upstream/refactor' into fix/refactor-issue-1231-image-runtimed91414bfix: stream remote managed assets📊 Changes
5 files changed (+168 additions, -5 deletions)
View changed files
📝
src-tauri/src/commands/storage.rs(+1 -1)📝
src-tauri/src/http_dispatch.rs(+58 -1)📝
src-tauri/src/http_server.rs(+82 -3)📝
src/shared/api/local-file-api.ts(+23 -0)📝
src/shared/api/remote-runtime.ts(+4 -0)📄 Description
Linked issue
Closes #1231
Why this change
unsupported_command, soTest Imagecould be a false positive.marinara-serverinstead of falling back to embedded Tauri/local filesystem resolution.What changed
image_generate,avatar_generation_command,sprite_generate_sheet, andsprite_generate_sheet_previewthrough the remote runtime allowlist and HTTP dispatcher./api/assets/:kind/*pathHTTP asset route for managed background, game, and lorebook assets.Refactor impact
Primary owner:
Impact areas reviewed:
src/shared/api/remote-runtime.tssrc/shared/api/local-file-api.tssrc/shared/api/image-generation-api.tssrc-tauri/src/http_dispatch.rssrc-tauri/src/http_server.rsAssetServiceBoundary notes:
Pressure points touched:
marinara-serverHTTP dispatch and asset servingValidation
pnpm checkpasses locallypnpm typecheckpasses locallypnpm buildpasses locallypnpm check:architecturepasses locallypnpm check:docspasses locallycargo check --manifest-path src-tauri/Cargo.toml --workspacepasses locallyManual verification notes
powershell -NoProfile -ExecutionPolicy Bypass -File scratch\issue-1231-http-repro.ps1 -Label before -Port 8877.image_generate,avatar_generation_command,sprite_generate_sheet, andsprite_generate_sheet_previewreturned HTTP 501unsupported_command.powershell -NoProfile -ExecutionPolicy Bypass -File scratch\issue-1231-http-repro.ps1 -Label after -Port 8878 -ExpectFixed.marinara-serverand return HTTP 400invalid_inputfor intentionally empty bodies, proving they no longer hit remote unsupported handling.chat_gallery_uploadstill succeeds with a PNG payload.background_uploadstill succeeds, andGET /api/assets/background/remote-background.pngreturns HTTP 200image/pngwith the uploaded bytes.definitely_not_real_remote_commandremains HTTP 501unsupported_command, andGET /api/assets/background/%2e%2e/package.jsonreturns HTTP 400 instead of serving a file.cargo test --manifest-path src-tauri/Cargo.toml http_dispatch::tests::dispatch_exposes_real_remote_image_generation_commands.pnpm check.node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.json.spawn EPERM), so proof is command/harness output rather than a UI screenshot. This bug is remote-runtime command/API behavior, not a visible UI layout issue.Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdNo docs changes needed: this restores intended remote-runtime parity for existing refactor image workflows.
UI evidence
No UI screenshot is included because the failure is command/API behavior in
marinara-server; the before/after HTTP harness output is captured inscratch/issue-1231-before/results.jsonandscratch/issue-1231-after/results.json.Summary by CodeRabbit
Release Notes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.