[PR #411] [MERGED] Fix scene controls after chat preset changes #4611

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/411
Author: @ghost
Created: 5/4/2026
Status: ✅ Merged
Merged: 5/5/2026
Merged by: @SpicyMarinara

Base: main ← Head: codex/fix-scene-rp-preset-controls


📝 Commits (2)

  • d1c9028 Fix scene controls after chat preset changes
  • b4a8dd3 Support both haptic position output names

📊 Changes

5 files changed (+51 additions, -8 deletions)

View changed files

📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+3 -2)
📝 packages/server/src/services/haptic/buttplug-service.ts (+7 -2)
📝 packages/server/src/services/storage/chat-presets.storage.ts (+8 -3)
➕ packages/server/test/chat-presets-storage.test.ts (+21 -0)
📝 packages/shared/src/types/chat-preset.ts (+12 -1)

📄 Description

Linked issue

https://github.com/Pasta-Devs/Marinara-Engine/issues/408

Closes #408

Why this change

  • Scene chats could lose their scene controls after applying a roleplay chat preset, leaving the scene unable to be concluded, abandoned, or converted.

What changed

  • Preserve scene lifecycle metadata when chat presets are saved or applied.
  • Hide chat preset controls while viewing scene chats so roleplay presets cannot be applied to active scenes from the drawer.
  • Add a regression test for stripping scene lifecycle state from saved preset metadata.
  • Update the haptic OutputType name to match the current Buttplug API so validation passes.

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

  • AI validation run only:
    • pnpm --filter @marinara-engine/server test
    • pnpm --filter @marinara-engine/client lint
    • pnpm check
  • Manual browser verification still needs to be completed by a human before submitting.

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)

UI evidence (if applicable)

Summary by CodeRabbit

  • Bug Fixes

    • Improved chat preset metadata handling by excluding scene-related data from being carried over when applying presets.
    • Enhanced scene chat UI behavior to properly hide preset settings when in scene mode.
  • Improvements

    • Refined haptic feedback command execution with better duration output type compatibility.
  • Tests

    • Added test coverage for chat preset metadata sanitization.

🔄 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/411 **Author:** [@ghost](https://github.com/ghost) **Created:** 5/4/2026 **Status:** ✅ Merged **Merged:** 5/5/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `main` ← **Head:** `codex/fix-scene-rp-preset-controls` --- ### 📝 Commits (2) - [`d1c9028`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d1c9028ca7de0242a8052296dacedef3fc05866e) Fix scene controls after chat preset changes - [`b4a8dd3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b4a8dd3136297e5f5b9e72b1810fdda9729bc412) Support both haptic position output names ### 📊 Changes **5 files changed** (+51 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+3 -2) 📝 `packages/server/src/services/haptic/buttplug-service.ts` (+7 -2) 📝 `packages/server/src/services/storage/chat-presets.storage.ts` (+8 -3) ➕ `packages/server/test/chat-presets-storage.test.ts` (+21 -0) 📝 `packages/shared/src/types/chat-preset.ts` (+12 -1) </details> ### 📄 Description ## Linked issue https://github.com/Pasta-Devs/Marinara-Engine/issues/408 Closes #408 ## Why this change - Scene chats could lose their scene controls after applying a roleplay chat preset, leaving the scene unable to be concluded, abandoned, or converted. ## What changed - Preserve scene lifecycle metadata when chat presets are saved or applied. - Hide chat preset controls while viewing scene chats so roleplay presets cannot be applied to active scenes from the drawer. - Add a regression test for stripping scene lifecycle state from saved preset metadata. - Update the haptic `OutputType` name to match the current Buttplug API so validation passes. ## 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 - AI validation run only: - `pnpm --filter @marinara-engine/server test` - `pnpm --filter @marinara-engine/client lint` - `pnpm check` - Manual browser verification still needs to be completed by a human before submitting. ## 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) ## UI evidence (if applicable) <!-- Add before/after screenshots or recordings for UI changes --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved chat preset metadata handling by excluding scene-related data from being carried over when applying presets. * Enhanced scene chat UI behavior to properly hide preset settings when in scene mode. * **Improvements** * Refined haptic feedback command execution with better duration output type compatibility. * **Tests** * Added test coverage for chat preset metadata sanitization. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:09:10 +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#4611
No description provided.