[PR #512] [MERGED] Add option to use CYOA choices as impersonate directions #4652

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/512
Author: @Xelvanis
Created: 5/7/2026
Status: ✅ Merged
Merged: 5/7/2026
Merged by: @Xelvanis

Base: main ← Head: feature/cyoa-impersonation-request-toggle


📝 Commits (1)

  • 9f6f207 Add option to use CYOA choices as impersonate directions

📊 Changes

3 files changed (+54 additions, -2 deletions)

View changed files

📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+17 -0)
📝 packages/client/src/components/chat/CyoaChoices.tsx (+25 -1)
📝 packages/client/src/stores/ui.store.ts (+12 -1)

📄 Description

When enabled in the impersonate settings, clicking a CYOA option triggers an impersonate generation using the configured preset, connection, and prompt template instead of sending the option as a normal user message. Bumps UI store schema to v19.

Linked issue

None, I just wanted it.

Why this change

  • Lets users click generated CYOA choices as directions for /impersonate, so the choice guides a generated user/persona reply instead of always sending a normal user message.

What changed

  • Added an impersonate setting: “Use CYOA as direction”.
  • Persisted and synced the new setting through the UI store.
  • Updated CYOA choice clicks to call impersonate generation when the setting is enabled.
  • Added a small “Impersonate” badge when CYOA choices are currently in impersonate mode.

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

  • Started roleplay chat with CYOA enabled.
  • Verified choosing CYOA choice maintains regular behavior.
  • Enabled "Use CYOA as direction" and chose a CYOA option.
  • Verified choice was used as impersonation direction and generated a user message accordingly.
  • Disabled setting, chose CYOA option, normal behavior resumed.

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

  • New Features
    • Added "Use CYOA as direction" setting in chat preferences to enable CYOA choices as impersonation triggers.
    • When enabled, selecting a CYOA option initiates an impersonate request instead of sending a standard message.
    • Setting syncs across devices.

🔄 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/512 **Author:** [@Xelvanis](https://github.com/Xelvanis) **Created:** 5/7/2026 **Status:** ✅ Merged **Merged:** 5/7/2026 **Merged by:** [@Xelvanis](https://github.com/Xelvanis) **Base:** `main` ← **Head:** `feature/cyoa-impersonation-request-toggle` --- ### 📝 Commits (1) - [`9f6f207`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9f6f2074aae5860879dbb19b4eef26d506ebede3) Add option to use CYOA choices as impersonate directions ### 📊 Changes **3 files changed** (+54 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+17 -0) 📝 `packages/client/src/components/chat/CyoaChoices.tsx` (+25 -1) 📝 `packages/client/src/stores/ui.store.ts` (+12 -1) </details> ### 📄 Description When enabled in the impersonate settings, clicking a CYOA option triggers an impersonate generation using the configured preset, connection, and prompt template instead of sending the option as a normal user message. Bumps UI store schema to v19. ## 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 --> None, I just wanted it. ## Why this change <!-- What user problem, bug, or goal does this solve? --> - Lets users click generated CYOA choices as directions for `/impersonate`, so the choice guides a generated user/persona reply instead of always sending a normal user message. ## What changed <!-- List the key changes in this PR --> - Added an impersonate setting: “Use CYOA as direction”. - Persisted and synced the new setting through the UI store. - Updated CYOA choice clicks to call impersonate generation when the setting is enabled. - Added a small “Impersonate” badge when CYOA choices are currently in impersonate mode. ## Validation <!-- Required: include commands run and/or manual checks performed --> - [X] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [X] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [X] Above manual verification completed (describe below) - [X] 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. --> - Started roleplay chat with CYOA enabled. - Verified choosing CYOA choice maintains regular behavior. - Enabled "Use CYOA as direction" and chose a CYOA option. - Verified choice was used as impersonation direction and generated a user message accordingly. - Disabled setting, chose CYOA option, normal behavior resumed. ## Docs and release impact - [X] 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 * **New Features** * Added "Use CYOA as direction" setting in chat preferences to enable CYOA choices as impersonation triggers. * When enabled, selecting a CYOA option initiates an impersonate request instead of sending a standard message. * Setting syncs across devices. <!-- 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:30 +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#4652
No description provided.