mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1800] [Issue]: Haptics can bypass chat toggles and lost legacy safeguards #881
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#881
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 1, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1800
Originally assigned to: @cha1latte on GitHub.
Summary
Runtime haptics regressed several legacy safeguards. Hidden
[haptic: ...]tags can be parsed and executed through connected command handling without the legacycharacterCommandsandenableHapticFeedbackgates. Haptic-agent execution also appears to have lost auto-connect/device-context behavior,inflatesupport, and some mixed-device/timer safety from legacy.Expected behavior
Haptic hardware commands should only execute when the relevant chat controls enable commands/haptic feedback and the user has connected devices. Haptic agents should receive actual connected device names/capabilities or skip safely. Legacy-supported haptic capabilities and command timing behavior should either be preserved or documented as intentional divergences.
Actual behavior
Static parity scan found these differences:
src/engine/generation/connected-commands.tsparses generated content and executes haptic commands throughintegrations.haptic.commandwithout an obviousmetadata.characterCommandsormetadata.enableHapticFeedbackgate.packages/server/src/routes/generate.routes.tsonly parsed character commands whenconversationCommandsEnabledwas true, and only injected haptic command guidance whenenableHapticFeedbackwas true and devices were connected.src/engine/agents-runtime/executor/agent-executor.tscan render_connectedDevices, but no refactor producer was found for that context. Legacy auto-connected Intiface and injected device names/capabilities for the haptic agent before execution.inflatecapability/action.Steps to reproduce
src/engine/generation/connected-commands.tsand followpersistConnectedCommandTagsthroughparseConnectedCommandsand hapticexecuteCommand.metadata.characterCommandsormetadata.enableHapticFeedbackbefore callingintegrations.haptic.command.packages/server/src/routes/generate.routes.ts, whereconversationCommandsEnabledgates character command parsing and haptic prompt injection is gated byenableHapticFeedbackplus connected devices.src/engine/contracts/types/haptic.ts,src-tauri/src/commands/storage/integrations/haptic.rs,packages/shared/src/types/haptic.ts, andpackages/server/src/services/haptic/buttplug-service.ts.Impact area
Environment
Logs, screenshots, or video
No runtime logs or screenshots. Evidence is from code comparison:
src/engine/generation/connected-commands.tssrc/features/runtime/generation/hooks/use-generate.tssrc/shared/api/haptics-api.ts,src/engine/contracts/types/haptic.ts,src-tauri/src/commands/storage/integrations/haptic.rssrc-tauri/src/http_dispatch.rspackages/server/src/routes/generate.routes.tspackages/server/src/services/haptic/buttplug-service.ts,packages/shared/src/types/haptic.tsRegression notes
Legacy supported tighter command gating, server-side haptic agent execution with connected-device context,
inflatecapability/action support, mixed-device partial success, and managed duration stop timers. Refactor appears to have split haptics into Tauri-local runtime support but did not preserve all behavior.Additional context
Recommended repair order:
characterCommandsandenableHapticFeedback.inflateor document its removal.Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:
@cha1latte commented on GitHub (Jun 1, 2026):
fixed in #1839