[GH-ISSUE #1232] [Issue]: Refactor chat gallery upload fails silently in remote runtime #600

Closed
opened 2026-10-20 17:30:37 +07:00 by bsakaguchi · 1 comment
Owner

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

  1. Check out upstream/refactor at commit 507e64ac.
  2. Run the Vite app with Remote Runtime URL set to http://127.0.0.1:8787.
  3. Open an existing conversation.
  4. Open the chat Gallery.
  5. Click Upload Images.
  6. Choose a PNG file.
  7. Wait for the upload to finish.

Marinara Engine version

upstream/refactor commit 507e64ac

Install type

Source

OS + version

Windows, exact version not specified

Browser or app shell

Vite web shell in Chromium/Playwright, with marinara-server remote runtime

Screenshots or video

After upload attempt, the gallery still only contains the prior image:

Gallery upload failure

Logs

The remote runtime does not expose the upload command used by the gallery:

{"code":"unsupported_command","details":null,"message":"chat_gallery_upload is not exposed by the remote runtime"}

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

  • I provided the required summary, behavior, reproduction, and environment details.
  • If this is a visual/UI bug, blank screen, layout issue, mobile/responsive issue, incorrect image or sprite, broken animation, or unexpected error state, I attached screenshots or video.
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 1. Check out `upstream/refactor` at commit `507e64ac`. 2. Run the Vite app with Remote Runtime URL set to `http://127.0.0.1:8787`. 3. Open an existing conversation. 4. Open the chat Gallery. 5. Click `Upload Images`. 6. Choose a PNG file. 7. Wait for the upload to finish. ### Marinara Engine version `upstream/refactor` commit `507e64ac` ### Install type Source ### OS + version Windows, exact version not specified ### Browser or app shell Vite web shell in Chromium/Playwright, with `marinara-server` remote runtime ### Screenshots or video After upload attempt, the gallery still only contains the prior image: ![Gallery upload failure](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/issue-evidence/image-generation-refactor-20260526/refactor-gallery-upload-failure.png) ### Logs The remote runtime does not expose the upload command used by the gallery: ```json {"code":"unsupported_command","details":null,"message":"chat_gallery_upload is not exposed by the remote runtime"} ``` 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 - [ ] I provided the required summary, behavior, reproduction, and environment details. - [ ] If this is a visual/UI bug, blank screen, layout issue, mobile/responsive issue, incorrect image or sprite, broken animation, or unexpected error state, I attached screenshots or video.
bsakaguchi 2026-10-20 17:30:37 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@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.

<!-- gh-comment-id:4544643421 --> @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.
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#600
No description provided.