mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1839] [MERGED] Fix haptic command safeguards #5309
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#5309
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1839
Author: @cha1latte
Created: 6/1/2026
Status: ✅ Merged
Merged: 6/1/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/issue-1800-haptic-safeguards📝 Commits (3)
949ffb7Fix haptic command safeguardsfb74740Keep command prompts quiet by defaultdc17a05Refresh PR checks📊 Changes
9 files changed (+230 additions, -17 deletions)
View changed files
📝
src-tauri/src/commands/storage/integrations/haptic.rs(+86 -11)📝
src/engine/capabilities/integrations.ts(+2 -0)📝
src/engine/generation/agent-runner.ts(+51 -1)➕
src/engine/generation/connected-commands.test.ts(+61 -0)📝
src/engine/generation/connected-commands.ts(+11 -0)📝
src/engine/modes/chat/commands/character-commands.ts(+2 -2)📝
src/features/runtime/generation/hooks/use-generate.ts(+13 -1)📝
src/shared/api/haptics-api.ts(+2 -2)📝
src/shared/api/integration-gateway.ts(+2 -0)📄 Description
Linked issue
Closes #1800
Why this change
What changed
[haptic: ...]commands behind bothmetadata.characterCommandsandmetadata.enableHapticFeedback, with regression coverage for each enabled/disabled combination.characterCommandsis explicitly enabled, while haptic execution still re-checks both chat controls before running.constrictparsing for hidden haptic tags.Refactor impact
Primary owner:
Engine generation and Rust haptic integration runtime.
Impact areas reviewed:
src/engine/generation/connected-commands.tssrc/engine/generation/agent-runner.tssrc/features/runtime/generation/hooks/use-generate.tssrc/shared/api/integration-gateway.tssrc-tauri/src/commands/storage/integrations/haptic.rsBoundary notes:
Pressure points touched:
Validation
pnpm typecheck,pnpm build,pnpm check:architecture,pnpm check:docs, or fullpnpm checkwhen warranted)pnpm checkpasses before PR push/handoffManual verification notes
Codex-run proof:
pnpm exec vitest run src/engine/generation/connected-commands.test.tsfailed 3 of 4 haptic gate cases because hidden haptic commands executed when one or both gates were disabled.pnpm exec vitest run src/engine/generation/connected-commands.test.tspassed.pnpm exec vitest run src/engine/generation/prompt-assembly.test.ts src/engine/generation/connected-commands.test.tspassed after preserving the prompt default.pnpm testpassed.pnpm typecheckpassed.pnpm check:architecturepassed.cargo check --manifest-path src-tauri/Cargo.toml --workspacepassed.cargo test --manifest-path src-tauri/Cargo.toml haptic --libpassed.pnpm checkpassed.Manual limitations:
inflatewas not restored. Local Buttplug Rust 10.0.2 sources haveOutputType::Inflatecommented out and noClientDeviceOutputCommand::Inflatevariant, so restoring it needs a separate dependency/API decision.Feature Discoverability
Check exactly one:
src/features/shell/discovery/because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.Reason:
Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdUI evidence (if applicable)
N/A; this is backend/engine/Rust haptic behavior. Proof is command-output based, with physical hardware QA called out above as unavailable.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.