[GH-ISSUE #1346] [Issue]: Refactor hostable runtime exposes only a small subset of desktop commands #671

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

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

Originally assigned to: @cha1latte on GitHub.

Summary

The desktop Tauri app exposes about 171 commands, while the hostable /api/invoke path exposes about 40. Many legacy remote-capable features are unreachable in remote runtime mode.

Classification: Partial port / remote-runtime parity gap

Expected behavior

Remote-capable behavior should be explicitly routed through src/shared/api/remote-runtime.ts and src-tauri/src/http_dispatch.rs, or intentionally documented as desktop-only.

Actual behavior

Bot Browser, GIF search, TTS, Spotify, haptics, fonts, game assets management, knowledge sources, chat memories/notes/branching, agent memory/runs/cadence, tracker snapshots, imports, and Professor Mari are missing from the hostable command allowlist/dispatch.

Steps to reproduce

  1. Count commands in src-tauri/src/lib.rs.
  2. Count allowed commands in src/shared/api/remote-runtime.ts and handlers in src-tauri/src/http_dispatch.rs.
  3. Compare against legacy Fastify route groups under .tmp/refactor-audit-v161/packages/server/src/routes.

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

Environment

  • Branch or commit: refactor (audit snapshot 07af6d8b)
  • Legacy baseline: origin/staging / v1.6.1 raw codebase
  • Run mode: Tauri desktop / remote runtime parity audit
  • OS + version: not OS-specific unless labeled Windows/Android
  • Node + pnpm versions: not captured for this audit ticket
  • Rust version, if relevant: not captured for this audit ticket
  • Remote Runtime URL configured? not relevant unless the issue is remote-runtime/security related
  • Provider, model, or integration, if relevant: see summary/additional context

Logs, screenshots, or video

No runtime logs or screenshots. Finding comes from raw-codebase parity inspection.

Regression notes

Legacy behavior/source exists in origin/staging / v1.6.1 raw codebase and is tracked in docs/refactor-staging-1.6-feature-gap-audit.md. Current refactor source did not show equivalent behavior at the paths named below.

Additional context

This should be split into command-family implementation PRs, but the umbrella issue tracks the explicit remote parity decision. Audit report: docs/refactor-staging-1.6-feature-gap-audit.md.

Audit report: docs/refactor-staging-1.6-feature-gap-audit.md.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @ghost on GitHub (May 26, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1346 Originally assigned to: @cha1latte on GitHub. ## Summary The desktop Tauri app exposes about 171 commands, while the hostable `/api/invoke` path exposes about 40. Many legacy remote-capable features are unreachable in remote runtime mode. **Classification:** Partial port / remote-runtime parity gap ## Expected behavior Remote-capable behavior should be explicitly routed through `src/shared/api/remote-runtime.ts` and `src-tauri/src/http_dispatch.rs`, or intentionally documented as desktop-only. ## Actual behavior Bot Browser, GIF search, TTS, Spotify, haptics, fonts, game assets management, knowledge sources, chat memories/notes/branching, agent memory/runs/cadence, tracker snapshots, imports, and Professor Mari are missing from the hostable command allowlist/dispatch. ## Steps to reproduce 1. Count commands in `src-tauri/src/lib.rs`. 2. Count allowed commands in `src/shared/api/remote-runtime.ts` and handlers in `src-tauri/src/http_dispatch.rs`. 3. Compare against legacy Fastify route groups under `.tmp/refactor-audit-v161/packages/server/src/routes`. ## 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 - [x] 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 ## Environment - Branch or commit: refactor (audit snapshot 07af6d8b) - Legacy baseline: origin/staging / v1.6.1 raw codebase - Run mode: Tauri desktop / remote runtime parity audit - OS + version: not OS-specific unless labeled Windows/Android - Node + pnpm versions: not captured for this audit ticket - Rust version, if relevant: not captured for this audit ticket - Remote Runtime URL configured? not relevant unless the issue is remote-runtime/security related - Provider, model, or integration, if relevant: see summary/additional context ## Logs, screenshots, or video No runtime logs or screenshots. Finding comes from raw-codebase parity inspection. ## Regression notes Legacy behavior/source exists in `origin/staging / v1.6.1 raw codebase` and is tracked in `docs/refactor-staging-1.6-feature-gap-audit.md`. Current refactor source did not show equivalent behavior at the paths named below. ## Additional context This should be split into command-family implementation PRs, but the umbrella issue tracks the explicit remote parity decision. Audit report: `docs/refactor-staging-1.6-feature-gap-audit.md`. Audit report: `docs/refactor-staging-1.6-feature-gap-audit.md`. ## Template check - [ ] I DID NOT read this template and provide the requested details.
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#671
No description provided.