[GH-ISSUE #1375] [Issue]: Classify hostable runtime local-only and mixed commands after parity merge #693

Closed
opened 2026-10-20 17:31:58 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @ghost on GitHub (May 27, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1375

Summary

After the hostable runtime command parity merge, the remote allowlist treats command-count parity as equivalent to remote-capability parity. Some commands are now routed to the hostable server even though they depend on the client app shell, local file paths, Tauri IPC channels, or user-machine devices. Others can fall back to local Tauri while the rest of the workflow uses the remote runtime, creating split-brain state.

Classification: Remote-runtime parity follow-up / command classification bug

Expected behavior

Remote runtime routing should classify commands by capability, not only by desktop command presence:

  • Remote-capable commands route through src/shared/api/remote-runtime.ts and src-tauri/src/http_dispatch.rs.
  • Client/app-shell-only commands remain local and are documented/classified.
  • Mixed workflows split shell actions from server-owned state actions.
  • When remoteRuntimeUrl is configured, local-path or channel-only workflows must not silently mutate local app state while storage/provider commands mutate the remote runtime.

Actual behavior

The merged parity fix exposes almost every JSON-shaped desktop command remotely. This leaves several unsafe or broken cases:

  • Spotify auth can split pending auth state between local spotify_authorize and remote spotify_exchange/spotify_status.
  • Local-path profile import can fall back to the embedded app while the rest of storage is remote.
  • SillyTavern bulk import can use local Tauri IPC channel events while scan/run state is expected to be remote.
  • Haptic commands route to the runtime host instead of the user app/device host.
  • Remote asset/font URLs are not consistently used when APIs return server absolute paths.

Proposed fix

  1. Replace desktop-minus-small-exception parity with an explicit non-remote command classification.
  2. Keep remote allowlist and HTTP dispatch in sync, but exclude local device/path/channel commands.
  3. Split Spotify authorization so remote pending auth/session state is created on the remote runtime while the client opens the returned auth URL.
  4. Prevent local-path profile import from silently running against local storage when a remote runtime is configured.
  5. Make ST bulk import avoid local Tauri IPC channels in remote mode and use the remote JSON run path.
  6. Serve and consume managed assets/fonts through hostable HTTP URLs instead of server absolute filesystem paths.

Impact area

  • App shell, navigation, startup, or providers
  • Catalog resources
  • Chat mode
  • Roleplay mode
  • Game mode
  • Shared mode UI
  • Runtime systems: generation, world-state, visuals, tracker, or haptics
  • Professor Mari or shell tools
  • React-free engine behavior, contracts, agents, or capability ports
  • Shared API wrapper or remote runtime routing
  • Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime
  • Docs, contributor workflow, or templates

Additional context

Follow-up to #1346 / #1372. The issue is not that remote parity is unwanted; the bug is treating all JSON request/response desktop commands as safe to run on the hostable runtime without classifying local shell/device/path dependencies.

Originally created by @ghost on GitHub (May 27, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1375 ## Summary After the hostable runtime command parity merge, the remote allowlist treats command-count parity as equivalent to remote-capability parity. Some commands are now routed to the hostable server even though they depend on the client app shell, local file paths, Tauri IPC channels, or user-machine devices. Others can fall back to local Tauri while the rest of the workflow uses the remote runtime, creating split-brain state. **Classification:** Remote-runtime parity follow-up / command classification bug ## Expected behavior Remote runtime routing should classify commands by capability, not only by desktop command presence: - Remote-capable commands route through `src/shared/api/remote-runtime.ts` and `src-tauri/src/http_dispatch.rs`. - Client/app-shell-only commands remain local and are documented/classified. - Mixed workflows split shell actions from server-owned state actions. - When `remoteRuntimeUrl` is configured, local-path or channel-only workflows must not silently mutate local app state while storage/provider commands mutate the remote runtime. ## Actual behavior The merged parity fix exposes almost every JSON-shaped desktop command remotely. This leaves several unsafe or broken cases: - Spotify auth can split pending auth state between local `spotify_authorize` and remote `spotify_exchange`/`spotify_status`. - Local-path profile import can fall back to the embedded app while the rest of storage is remote. - SillyTavern bulk import can use local Tauri IPC channel events while scan/run state is expected to be remote. - Haptic commands route to the runtime host instead of the user app/device host. - Remote asset/font URLs are not consistently used when APIs return server absolute paths. ## Proposed fix 1. Replace desktop-minus-small-exception parity with an explicit non-remote command classification. 2. Keep remote allowlist and HTTP dispatch in sync, but exclude local device/path/channel commands. 3. Split Spotify authorization so remote pending auth/session state is created on the remote runtime while the client opens the returned auth URL. 4. Prevent local-path profile import from silently running against local storage when a remote runtime is configured. 5. Make ST bulk import avoid local Tauri IPC channels in remote mode and use the remote JSON run path. 6. Serve and consume managed assets/fonts through hostable HTTP URLs instead of server absolute filesystem paths. ## Impact area - [ ] App shell, navigation, startup, or providers - [ ] Catalog resources - [ ] Chat mode - [ ] Roleplay mode - [ ] Game mode - [ ] Shared mode UI - [x] Runtime systems: generation, world-state, visuals, tracker, or haptics - [x] Professor Mari or shell tools - [ ] React-free engine behavior, contracts, agents, or capability ports - [x] Shared API wrapper or remote runtime routing - [x] Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime - [ ] Docs, contributor workflow, or templates ## Additional context Follow-up to #1346 / #1372. The issue is not that remote parity is unwanted; the bug is treating all JSON request/response desktop commands as safe to run on the hostable runtime without classifying local shell/device/path dependencies.
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#693
No description provided.