mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1233] [Issue]: Refactor Vite image connection setup shows raw Tauri invoke error #606
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#606
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/1233
Originally assigned to: @cha1latte on GitHub.
Summary
On
upstream/refactor, trying to create an Image Generation connection in the plain Vite web shell without a remote runtime shows a raw Tauri IPC error. The user seesCannot read properties of undefined (reading 'invoke')instead of guidance about needing the Tauri shell or Remote Runtime URL.Expected behavior
The web shell should either create the connection through an available runtime, or show a clear setup error such as "Remote Runtime URL is not configured" / "This action requires the Tauri app shell."
Actual behavior
Clicking
Createfor an Image Generation connection shows a raw JavaScript/Tauri implementation error:Steps to reproduce
upstream/refactorat commit507e64ac.Add Connection.Image Generation.Create.Marinara Engine version
upstream/refactorcommit507e64acInstall type
Source
OS + version
Windows, exact version not specified
Browser or app shell
Vite web shell in Chromium/Playwright
Screenshots or video
Logs
User-facing toast:
Additional context
Likely owner/component:
src/shared/api/tauri-client.tsruntime detection/error normalization and connection creation via storage API.This blocks fresh browser/remote setup before users can configure image generation.
Template check
@Xelvanis commented on GitHub (May 26, 2026):
Related transport edge case from the audit: configured-but-invalid Remote Runtime URL should fail closed too. Right now
remoteRuntimeTarget()catches URL parsing errors and returns null, which letsinvokeTauri()fall through to embedded Tauri. In browser mode that can become a raw invoke failure; in desktop it can read/write local data when the user intended remote data.I split that into #1246 because this ticket is specifically about missing runtime setup in Vite, but the fix likely belongs near the same runtime detection/error normalization path.
@franko-c commented on GitHub (May 26, 2026):
from what I can see,
tauri-client.ts:19—invokeTaurifalls through toinvoke()whenremoteRuntimeTarget()returns null. in a vite web shellwindow.__TAURI_INTERNALS__is undefined.storage_createis in REMOTE_COMMANDS — gap is the else-branch when neither runtime is set. haven't checked if other image commands hit the same path.