mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7317] [MERGED] feat(chat): add CYOA choices to the message box without sending #7680
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#7680
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/7317
Author: @stonebystone
Created: 10/8/2026
Status: ✅ Merged
Merged: 10/9/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feat/cyoa-add-to-message📝 Commits (9)
bfd5347feat(chat): add CYOA choices to the composer without sendingb406cdcdocs(roleplay): mention CYOA Add to messageb38a457feat(chat): make CYOA add-to-message a setting instead of a per-choice button21ab7d9feat(chat): move CYOA add-to-message toggle to Settings > Input & Editingdc18c12test(e2e): cover CYOA choices going to the message boxd3d5d70Merge branch 'staging' of https://github.com/Pasta-Devs/Marinara-Engine into feat/cyoa-add-to-messagec639485Merge branch 'staging' of https://github.com/Pasta-Devs/Marinara-Engine into feat/cyoa-add-to-messagec0f33a8Merge branch 'staging' of https://github.com/Pasta-Devs/Marinara-Engine into feat/cyoa-add-to-message357712ddocs(changelog): spell out CYOA add-to-message priority over impersonation📊 Changes
10 files changed (+170 additions, -26 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
docs/agents/built-in-agents.md(+1 -1)📝
docs/roleplay/getting-started.md(+1 -1)📝
e2e/core-flows.e2e.ts(+52 -0)📝
packages/client/src/components/chat/CyoaChoices.tsx(+61 -23)📝
packages/client/src/components/chat/cyoa-choice-submission.ts(+14 -0)📝
packages/client/src/components/panels/SettingsPanel.tsx(+17 -0)📝
packages/client/src/localization/locales/en.json(+1 -0)📝
packages/client/src/stores/ui.store.ts(+7 -0)📝
scripts/regressions/spatial-context.regression.ts(+15 -1)📄 Description
Linked issue
Closes #7315
Why this change
What changed
Reworked per review: a setting instead of a per-choice button.
addCyoaChoicesToMessage, off by default, synced likeimpersonateCyoaChoices). When on, clicking a choice appends its text to the message box with a blank line, focuses it with the cursor at the end, and keeps the choices on screen. Nothing is sent and no generation starts. When off, clicking a choice works exactly as before, including impersonate mode.resolveCyoaChoiceActionpicks the path (add / impersonate / send); adding takes priority over Use CYOA as direction. The CYOA header's send/impersonate pill is hidden while the setting is on, since it would have no effect.ChatAreaalready uses for guided-regeneration drafts: write to the active chat'stextarea[data-chat-composer], dispatch aninputevent so the uncontrolled composer runs its own sizing and draft saving, thensetInputDraft. If the composer isn't mounted, only the stored draft is updated.cyoa-choice-submission.ts:appendCyoaChoiceToDraftandresolveCyoaChoiceAction, both covered inscripts/regressions/spatial-context.regression.tsnext to the existing CYOA payload checks.CHANGELOG.md[Unreleased]entry.docs/roleplay/getting-started.mdanddocs/agents/built-in-agents.mdpoint to the setting. Translations are tracked in the[docs-i18n]follow-up #7316.Validation
pnpm checkpasses locallyCONTRIBUTING.mdAgent-run checks on commit
21ab7d920(branched fromorigin/stagingat85b85d676):pnpm check: passed (clean:stale-client, impeccable:check, localization:check, format:check, lint, check:e2e-types, check:token-estimation-types, build).node ./scripts/run-regressions.mjs --filter scripts/regressions/spatial-context.regression.ts: 1/1 passed.Manual verification notes
To verify in a browser:
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)Optional follow-up in Pasta-Devs/Marinara-Agents: the CYOA package description says "Click one to send it as your reply"; it could mention the new button.
UI evidence (if applicable)
🤖 Generated with Claude Code
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.