[GH-ISSUE #1921] [Issue]: haptic controls are not exposed through remote runtime #939

Closed
opened 2026-10-21 05:23:51 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Xelvanis on GitHub (Jun 2, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1921

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Haptic controls are still part of the refactor product surface, but the hostable remote runtime explicitly excludes all haptic commands from /api/invoke. In web-shell or remote-runtime mode, the haptic settings panel and haptic agent/command flow cannot reach the Rust haptic backend.

Expected behavior

Remote-runtime haptic behavior should be one of:

  • supported with a guarded remote path comparable to legacy /api/haptic/* plus HAPTICS_ALLOW_REMOTE, or
  • clearly hidden/disabled in remote runtime and web-shell flows with user-facing copy saying haptics require the embedded Tauri shell.

Actual behavior

Static inspection on current origin/refactor shows:

  • src/features/modes/shared/chat-ui/components/settings/HapticConnectionPanel.tsx still exposes Intiface URL setup and says Docker or remote browser setups may need ws://CLIENT_IP:12345.
  • src/shared/api/haptics-api.ts calls invokeTauri for haptic_status, haptic_connect, haptic_disconnect, haptic_start_scan, haptic_stop_scan, haptic_command, and haptic_stop_all.
  • src-tauri/src/http_dispatch.rs lists all haptic commands in NON_REMOTE_COMMANDS, so they are intentionally absent from the remote runtime allowlist and dispatcher.
  • Runtime generation code still calls the haptic integration gateway when haptic feedback is enabled.

Legacy exposed /api/haptic/* server routes with a privilege gate and an explicit HAPTICS_ALLOW_REMOTE opt-in for non-loopback clients.

Steps to reproduce

  1. Configure a Remote Runtime URL or run in web-shell mode.
  2. Enable the haptic agent / haptic feedback for a chat.
  3. Open the haptic connection controls or trigger a haptic command path.
  4. The shared API attempts haptic invokeTauri commands that are not remote-supported.

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: origin/refactor at 0afe673
  • Run mode: web shell / remote runtime
  • OS + version: not captured
  • Node + pnpm versions: not relevant
  • Rust version, if relevant: not captured
  • Remote Runtime URL configured? yes
  • Provider, model, or integration, if relevant: haptics / Intiface Central

Logs, screenshots, or video

No runtime screenshot attached. Static evidence:

  • src/features/modes/shared/chat-ui/components/settings/HapticConnectionPanel.tsx: haptic connection UI and remote-browser setup hint.
  • src/shared/api/haptics-api.ts: haptic commands go through invokeTauri.
  • src/shared/api/integration-gateway.ts: generation/runtime haptic gateway calls those wrappers.
  • src-tauri/src/http_dispatch.rs: haptic commands are listed as non-remote commands.
  • Legacy packages/server/src/routes/haptic.routes.ts: guarded /api/haptic/* routes existed.
  • Legacy packages/server/src/config/runtime-config.ts: HAPTICS_ALLOW_REMOTE controlled non-loopback haptic access.

Regression notes

This is a legacy parity gap for remote/browser deployments. It may be an intentional refactor limitation, but the current UI copy and runtime flow do not clearly communicate that limitation.

Additional context

Suggested next action: make a product decision first. If haptics remain remote-capable, add guarded dispatch arms and remote tests. If haptics are embedded-only, hide/disable the panel and suppress haptic runtime attempts when Remote Runtime URL is configured.

Related tracker: #1904 target 3, remote runtime parity.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @Xelvanis on GitHub (Jun 2, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1921 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Haptic controls are still part of the refactor product surface, but the hostable remote runtime explicitly excludes all haptic commands from `/api/invoke`. In web-shell or remote-runtime mode, the haptic settings panel and haptic agent/command flow cannot reach the Rust haptic backend. ## Expected behavior Remote-runtime haptic behavior should be one of: - supported with a guarded remote path comparable to legacy `/api/haptic/*` plus `HAPTICS_ALLOW_REMOTE`, or - clearly hidden/disabled in remote runtime and web-shell flows with user-facing copy saying haptics require the embedded Tauri shell. ## Actual behavior Static inspection on current `origin/refactor` shows: - `src/features/modes/shared/chat-ui/components/settings/HapticConnectionPanel.tsx` still exposes Intiface URL setup and says Docker or remote browser setups may need `ws://CLIENT_IP:12345`. - `src/shared/api/haptics-api.ts` calls `invokeTauri` for `haptic_status`, `haptic_connect`, `haptic_disconnect`, `haptic_start_scan`, `haptic_stop_scan`, `haptic_command`, and `haptic_stop_all`. - `src-tauri/src/http_dispatch.rs` lists all haptic commands in `NON_REMOTE_COMMANDS`, so they are intentionally absent from the remote runtime allowlist and dispatcher. - Runtime generation code still calls the haptic integration gateway when haptic feedback is enabled. Legacy exposed `/api/haptic/*` server routes with a privilege gate and an explicit `HAPTICS_ALLOW_REMOTE` opt-in for non-loopback clients. ## Steps to reproduce 1. Configure a Remote Runtime URL or run in web-shell mode. 2. Enable the haptic agent / haptic feedback for a chat. 3. Open the haptic connection controls or trigger a haptic command path. 4. The shared API attempts haptic `invokeTauri` commands that are not remote-supported. ## Impact area - [ ] App shell, navigation, startup, or providers - [ ] Catalog resources - [x] Chat mode - [x] Roleplay mode - [ ] Game mode - [x] Shared mode UI - [x] 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: `origin/refactor` at `0afe673` - Run mode: web shell / remote runtime - OS + version: not captured - Node + pnpm versions: not relevant - Rust version, if relevant: not captured - Remote Runtime URL configured? yes - Provider, model, or integration, if relevant: haptics / Intiface Central ## Logs, screenshots, or video No runtime screenshot attached. Static evidence: - `src/features/modes/shared/chat-ui/components/settings/HapticConnectionPanel.tsx`: haptic connection UI and remote-browser setup hint. - `src/shared/api/haptics-api.ts`: haptic commands go through `invokeTauri`. - `src/shared/api/integration-gateway.ts`: generation/runtime haptic gateway calls those wrappers. - `src-tauri/src/http_dispatch.rs`: haptic commands are listed as non-remote commands. - Legacy `packages/server/src/routes/haptic.routes.ts`: guarded `/api/haptic/*` routes existed. - Legacy `packages/server/src/config/runtime-config.ts`: `HAPTICS_ALLOW_REMOTE` controlled non-loopback haptic access. ## Regression notes This is a legacy parity gap for remote/browser deployments. It may be an intentional refactor limitation, but the current UI copy and runtime flow do not clearly communicate that limitation. ## Additional context Suggested next action: make a product decision first. If haptics remain remote-capable, add guarded dispatch arms and remote tests. If haptics are embedded-only, hide/disable the panel and suppress haptic runtime attempts when Remote Runtime URL is configured. Related tracker: #1904 target 3, remote runtime parity. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:23:51 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Jun 2, 2026):

Resolved on refactor in a4ba3c90 with the embedded-only product decision: haptic UI is disabled in Remote Runtime mode with clear copy, status polling is suppressed there, and generation-side haptic gateway calls return an explicit remote-unsupported result instead of attempting unavailable Tauri commands. Verification passed: typecheck, architecture, docs, build, cargo check, diff check.

<!-- gh-comment-id:4601639289 --> @SpicyMarinara commented on GitHub (Jun 2, 2026): Resolved on refactor in a4ba3c90 with the embedded-only product decision: haptic UI is disabled in Remote Runtime mode with clear copy, status polling is suppressed there, and generation-side haptic gateway calls return an explicit remote-unsupported result instead of attempting unavailable Tauri commands. Verification passed: typecheck, architecture, docs, build, cargo check, diff check.
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#939
No description provided.