mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1232] [Issue]: Refactor chat gallery upload fails silently in remote runtime #600
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#600
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?
Originally created by @cha1latte on GitHub (May 26, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1232
Originally assigned to: @cha1latte on GitHub.
Summary
On
upstream/refactor, uploading an image into a chat gallery fails in the remote-runtime/browser path without a clear user-facing error. The user selects an image, the gallery remains unchanged, and the selected output is not saved.Expected behavior
Uploading an image from the chat Gallery should either save the image and show it in the gallery, or show a clear error explaining why upload is unavailable.
Actual behavior
The gallery stayed on the existing image only. No new image appeared after selecting an image file, and the UI did not show a clear upload failure message.
Steps to reproduce
upstream/refactorat commit507e64ac.http://127.0.0.1:8787.Upload Images.Marinara Engine version
upstream/refactorcommit507e64acInstall type
Source
OS + version
Windows, exact version not specified
Browser or app shell
Vite web shell in Chromium/Playwright, with
marinara-serverremote runtimeScreenshots or video
After upload attempt, the gallery still only contains the prior image:
Logs
The remote runtime does not expose the upload command used by the gallery:
Storage after the upload attempt still contained only the pre-existing gallery item.
Additional context
Likely owner/component:
src/features/catalog/gallery/hooks/use-gallery.ts,src/shared/api/image-generation-api.ts, and remote runtime command exposure.This can lose user output because the selected file is not saved and the UI does not clearly tell the user what happened.
Template check
@Xelvanis commented on GitHub (May 26, 2026):
Additional audit note: the failure mode here has two parts: command support/parity and user-visible failure handling. The upload path should reject unsupported remote uploads before or at selection with a clear error, and should not silently leave the gallery unchanged. While touching this, consider preflight file-size validation before converting selected files to base64 in
src/shared/api/file-payload.ts, so oversized uploads fail before renderer work/JSON transport.