[GH-ISSUE #1231] [Issue]: Refactor remote runtime tests image providers but cannot run real image generation #604

Closed
opened 2026-10-20 17:30:38 +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/1231

Originally assigned to: @cha1latte on GitHub.

Summary

On upstream/refactor, the browser/remote-runtime path can save and test an image-generation connection, but the real image generation commands are not exposed by marinara-server. This makes Test Image a false positive: users can verify a provider successfully and then fail when normal chat/gallery/avatar/sprite generation tries to use the same runtime.

Expected behavior

Remote runtime should expose the image-generation commands used by the refactor UI, or the UI should clearly mark those workflows as unsupported in remote/browser mode before users configure and test them.

Actual behavior

connection_test_image is remote-enabled and successfully called the fake OpenAI-compatible image provider, but the commands used by real image workflows return unsupported_command:

  • image_generate is not exposed by the remote runtime
  • chat_gallery_upload is not exposed by the remote runtime
  • avatar_generation_command is not exposed by the remote runtime
  • sprite_generate_sheet is not exposed by the remote runtime

Steps to reproduce

  1. Check out upstream/refactor at commit 507e64ac.
  2. Run the Vite app and marinara-server.
  3. In Settings → Advanced, set Remote Runtime URL to http://127.0.0.1:8787.
  4. Create an Image Generation connection.
  5. Configure it against an OpenAI-compatible image provider.
  6. Click Test Image in the connection editor.
  7. Try a real image workflow that calls image_generate, chat_gallery_upload, avatar_generation_command, or sprite_generate_sheet.

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

Provider configuration can appear usable while real image workflows fail:

Image connection raw runtime evidence

Logs

Remote runtime responses:

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

Fake provider request log showed only the connection test hit the image provider:

{"method":"POST","path":"/v1/images/generations","body":{"model":"gpt-image-2","n":1,"output_format":"png","prompt":"plate of spaghetti with marinara sauce","size":"1024x1024"}}

Additional context

Likely owner/component: src/shared/api/remote-runtime.ts, src/shared/api/image-generation-api.ts, and src-tauri/src/http_dispatch.rs.

The frontend wrapper uses image_generate, chat_gallery_upload, avatar_generation_command, and sprite commands, but the remote command allowlist/dispatcher does not include those commands.

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/1231 Originally assigned to: @cha1latte on GitHub. ### Summary On `upstream/refactor`, the browser/remote-runtime path can save and test an image-generation connection, but the real image generation commands are not exposed by `marinara-server`. This makes `Test Image` a false positive: users can verify a provider successfully and then fail when normal chat/gallery/avatar/sprite generation tries to use the same runtime. ### Expected behavior Remote runtime should expose the image-generation commands used by the refactor UI, or the UI should clearly mark those workflows as unsupported in remote/browser mode before users configure and test them. ### Actual behavior `connection_test_image` is remote-enabled and successfully called the fake OpenAI-compatible image provider, but the commands used by real image workflows return `unsupported_command`: - `image_generate is not exposed by the remote runtime` - `chat_gallery_upload is not exposed by the remote runtime` - `avatar_generation_command is not exposed by the remote runtime` - `sprite_generate_sheet is not exposed by the remote runtime` ### Steps to reproduce 1. Check out `upstream/refactor` at commit `507e64ac`. 2. Run the Vite app and `marinara-server`. 3. In Settings → Advanced, set Remote Runtime URL to `http://127.0.0.1:8787`. 4. Create an Image Generation connection. 5. Configure it against an OpenAI-compatible image provider. 6. Click `Test Image` in the connection editor. 7. Try a real image workflow that calls `image_generate`, `chat_gallery_upload`, `avatar_generation_command`, or `sprite_generate_sheet`. ### 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 Provider configuration can appear usable while real image workflows fail: ![Image connection raw runtime evidence](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/issue-evidence/image-generation-refactor-20260526/refactor-no-remote-create-connection-error.png) ### Logs Remote runtime responses: ```json {"code":"unsupported_command","details":null,"message":"image_generate is not exposed by the remote runtime"} ``` ```json {"code":"unsupported_command","details":null,"message":"chat_gallery_upload is not exposed by the remote runtime"} ``` ```json {"code":"unsupported_command","details":null,"message":"avatar_generation_command is not exposed by the remote runtime"} ``` ```json {"code":"unsupported_command","details":null,"message":"sprite_generate_sheet is not exposed by the remote runtime"} ``` Fake provider request log showed only the connection test hit the image provider: ```json {"method":"POST","path":"/v1/images/generations","body":{"model":"gpt-image-2","n":1,"output_format":"png","prompt":"plate of spaghetti with marinara sauce","size":"1024x1024"}} ``` ### Additional context Likely owner/component: `src/shared/api/remote-runtime.ts`, `src/shared/api/image-generation-api.ts`, and `src-tauri/src/http_dispatch.rs`. The frontend wrapper uses `image_generate`, `chat_gallery_upload`, `avatar_generation_command`, and sprite commands, but the remote command allowlist/dispatcher does not include those commands. ### 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:38 +07:00
Author
Owner

@Xelvanis commented on GitHub (May 26, 2026):

Additional audit note: when fixing this, can we include the follow-on managed asset path in the acceptance criteria? The current remote command exposure gap is one failure mode, but remote-capable image/background workflows also need end-to-end asset resolution after upload or generation. A remote upload/generation that returns a managed asset tag is not sufficient if the UI later resolves that tag through embedded Tauri/local filesystem instead of the remote runtime.

Relevant areas from the audit: src/shared/api/remote-runtime.ts, src/shared/api/image-generation-api.ts, src/shared/api/local-file-api.ts, and src-tauri/src/http_dispatch.rs.

<!-- gh-comment-id:4544643188 --> @Xelvanis commented on GitHub (May 26, 2026): Additional audit note: when fixing this, can we include the follow-on managed asset path in the acceptance criteria? The current remote command exposure gap is one failure mode, but remote-capable image/background workflows also need end-to-end asset resolution after upload or generation. A remote upload/generation that returns a managed asset tag is not sufficient if the UI later resolves that tag through embedded Tauri/local filesystem instead of the remote runtime. Relevant areas from the audit: `src/shared/api/remote-runtime.ts`, `src/shared/api/image-generation-api.ts`, `src/shared/api/local-file-api.ts`, and `src-tauri/src/http_dispatch.rs`.
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#604
No description provided.