[PR #806] [MERGED] Fix haptic command actuation fallbacks #4776

Closed
opened 2026-10-22 04:10:34 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/806
Author: @cha1latte
Created: 5/13/2026
Status: ✅ Merged
Merged: 5/13/2026
Merged by: @cha1latte

Base: main ← Head: fix/issue-791-love-toys-actuation


📝 Commits (1)

  • d142048 Fix haptic command actuation fallbacks

📊 Changes

3 files changed (+58 additions, -5 deletions)

View changed files

➕ docs/pr-evidence/issue-791/haptic-command-proof.txt (+0 -0)
📝 packages/server/src/routes/generate.routes.ts (+16 -2)
📝 packages/server/src/services/haptic/buttplug-service.ts (+42 -3)

📄 Description

Linked issue

Closes #791

Why this change

  • Love Toys Control could report that Intiface Central was connected while agent/chat commands still produced no device actuation when the command action did not match an exposed device output.

What changed

  • Accept haptic agent output that returns a single top-level command object, not only { "commands": [...] }.
  • Add capability-aware vibration fallbacks for haptic actions that the connected device does not directly expose.
  • Surface explicit errors when a connected device has no compatible output instead of treating that path as a successful no-op.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Codex ran pnpm --dir packages/server exec tsx ../../scratch/issue-791-haptic-repro.ts; evidence is committed at docs/pr-evidence/issue-791/haptic-command-proof.txt.
  • The repro shows the old rotate-on-vibrate-only path ran 0 outputs, while the patched path runs 1 vibrate fallback output at the requested intensity.
  • The repro also verifies that metadata-only/no-output devices now return No compatible haptic outputs... instead of succeeding silently, and that a single top-level haptic command shape is accepted.
  • Codex ran pnpm check; it passed.
  • Not manually verified on physical Android Termux + Intiface Central hardware because this environment does not have Android hardware or a paired haptic device.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

No docs or release metadata changes needed; this is a narrow server haptic-command execution fix.

UI evidence (if applicable)

N/A — not a visual/UI bug. Command-path evidence is committed at docs/pr-evidence/issue-791/haptic-command-proof.txt.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/806 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/13/2026 **Status:** ✅ Merged **Merged:** 5/13/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `main` ← **Head:** `fix/issue-791-love-toys-actuation` --- ### 📝 Commits (1) - [`d142048`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d142048b2526ab085b6f7554edb500d6ff53f1a3) Fix haptic command actuation fallbacks ### 📊 Changes **3 files changed** (+58 additions, -5 deletions) <details> <summary>View changed files</summary> ➕ `docs/pr-evidence/issue-791/haptic-command-proof.txt` (+0 -0) 📝 `packages/server/src/routes/generate.routes.ts` (+16 -2) 📝 `packages/server/src/services/haptic/buttplug-service.ts` (+42 -3) </details> ### 📄 Description ## Linked issue <!-- Every PR should reference a feature request or issue report. If there isn't one yet, open one first to gather opinions: --> <!-- https://github.com/Pasta-Devs/Marinara-Engine/issues/new/choose --> Closes #791 ## Why this change <!-- What user problem, bug, or goal does this solve? --> - Love Toys Control could report that Intiface Central was connected while agent/chat commands still produced no device actuation when the command action did not match an exposed device output. ## What changed <!-- List the key changes in this PR --> - Accept haptic agent output that returns a single top-level command object, not only `{ "commands": [...] }`. - Add capability-aware vibration fallbacks for haptic actions that the connected device does not directly expose. - Surface explicit errors when a connected device has no compatible output instead of treating that path as a successful no-op. ## Validation <!-- Required: include commands run and/or manual checks performed --> - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes <!-- Describe exactly what you tested in a real browser/app, step by step. --> <!-- ⚠️ If an AI agent filled out or ticked these boxes for you, treat them --> <!-- as a TO-DO LIST, not as proof the work is done. Verify each item yourself --> <!-- before submitting. If you haven't verified it, untick the box. --> - Codex ran `pnpm --dir packages/server exec tsx ../../scratch/issue-791-haptic-repro.ts`; evidence is committed at `docs/pr-evidence/issue-791/haptic-command-proof.txt`. - The repro shows the old rotate-on-vibrate-only path ran `0` outputs, while the patched path runs `1` vibrate fallback output at the requested intensity. - The repro also verifies that metadata-only/no-output devices now return `No compatible haptic outputs...` instead of succeeding silently, and that a single top-level haptic command shape is accepted. - Codex ran `pnpm check`; it passed. - Not manually verified on physical Android Termux + Intiface Central hardware because this environment does not have Android hardware or a paired haptic device. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) No docs or release metadata changes needed; this is a narrow server haptic-command execution fix. ## UI evidence (if applicable) N/A — not a visual/UI bug. Command-path evidence is committed at `docs/pr-evidence/issue-791/haptic-command-proof.txt`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:10:34 +07:00
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#4776
No description provided.