Skip to content

[Issue]: Refactor chat gallery upload fails silently in remote runtime #1232

@cha1latte

Description

@cha1latte

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions