mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1921] [Issue]: haptic controls are not exposed through remote runtime #939
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#939
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 @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:
/api/haptic/*plusHAPTICS_ALLOW_REMOTE, orActual behavior
Static inspection on current
origin/refactorshows:src/features/modes/shared/chat-ui/components/settings/HapticConnectionPanel.tsxstill exposes Intiface URL setup and says Docker or remote browser setups may needws://CLIENT_IP:12345.src/shared/api/haptics-api.tscallsinvokeTauriforhaptic_status,haptic_connect,haptic_disconnect,haptic_start_scan,haptic_stop_scan,haptic_command, andhaptic_stop_all.src-tauri/src/http_dispatch.rslists all haptic commands inNON_REMOTE_COMMANDS, so they are intentionally absent from the remote runtime allowlist and dispatcher.Legacy exposed
/api/haptic/*server routes with a privilege gate and an explicitHAPTICS_ALLOW_REMOTEopt-in for non-loopback clients.Steps to reproduce
invokeTauricommands that are not remote-supported.Impact area
Environment
origin/refactorat0afe673Logs, 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 throughinvokeTauri.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.packages/server/src/routes/haptic.routes.ts: guarded/api/haptic/*routes existed.packages/server/src/config/runtime-config.ts:HAPTICS_ALLOW_REMOTEcontrolled 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
@SpicyMarinara commented on GitHub (Jun 2, 2026):
Resolved on refactor in
a4ba3c90with 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.