mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #5970] [MERGED] feat(roleplay): add opt-in commands, private notes, and real rolls #7003
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#7003
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/5970
Author: @SpicyMarinara
Created: 9/8/2026
Status: ✅ Merged
Merged: 9/8/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feat/roleplay-commands📝 Commits (4)
726ba80feat(roleplay): add opt-in character commandsc96a771test(roleplay): align agent activation proof with command turns31d60c0fix(roleplay): isolate cancellation of shared sound requests7ff970bMerge remote-tracking branch 'origin/staging' into feat/roleplay-commands📊 Changes
24 files changed (+2016 additions, -89 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)➕
e2e/roleplay-commands.e2e.ts(+477 -0)📝
packages/client/src/components/chat/ChatMessage.tsx(+4 -2)📝
packages/client/src/components/chat/ChatRoleplaySurface.tsx(+7 -1)📝
packages/client/src/components/chat/ChatSettingsDrawer.tsx(+28 -15)➕
packages/client/src/components/chat/RoleplayCommandResults.tsx(+53 -0)➕
packages/client/src/components/chat/RoleplayCommandsSettings.tsx(+151 -0)📝
packages/client/src/hooks/use-generate.ts(+30 -1)📝
packages/client/src/localization/locales/en.json(+33 -0)📝
packages/server/src/routes/generate.routes.ts(+378 -61)📝
packages/server/src/routes/generate/conversation-prompt-formatting.ts(+10 -0)📝
packages/server/src/routes/generate/dry-run-route.ts(+46 -0)📝
packages/server/src/routes/tts.routes.ts(+43 -0)📝
packages/server/src/services/conversation/character-commands.ts(+1 -1)📝
packages/server/src/services/generation/generation-parameters.ts(+1 -1)➕
packages/server/src/services/generation/roleplay-commands.ts(+376 -0)📝
packages/shared/src/index.ts(+1 -0)📝
packages/shared/src/types/chat.ts(+14 -0)➕
packages/shared/src/types/roleplay-command.ts(+43 -0)📝
scripts/regressions/agent-activation.regression.ts(+5 -3)...and 4 more files
📄 Description
Linked issue
Closes #5969
Why this change
Roleplay characters can forget that they lied, lose a cover story, or miss a planned follow-up when reasoning is not replayed between turns. This adds private character state and scene-appropriate commands through the familiar Conversation settings controls, with an optional narrator able to use those intentions without giving every character access.
What changed
Validation
pnpm checkpasses locallyCONTRIBUTING.mdCompleted automated evidence (checkboxes remain a human to-do list):
pnpm checkandpnpm regression:promptpassed. The existing lint warning in untouchedGameNarration.tsxremains.pnpm smoke:ui: 619 passed, 228 skipped, 17 failed. All 17 failed cases passed in isolation with--last-failed --workers=1; the broad run was not a clean pass. A later sound-selector assertion collided on identical names from two mobile fixtures; it was scoped to the unique connection ID, and all three sound cases passed afterward.git diff --checkpassed. The local Docker image built successfully; a fresh isolated container returned HTTP 200 JSON at/api/healthand HTTP 200 HTML at/. The temporary container and its anonymous data volume were removed afterward.7ff970b86, project validation, the complete Node suite, Docker build/run checks, security analysis, and nine browser shards passed CI. One mobile WebKit shard closed its page during the unchanged Game Chroma widget test; that exact test passed locally in mobile WebKit, and the failed CI shard is being rerun. The earlier internal WebKit page-reload failure onc96a77120also passed on rerun.31d60c042and the final base-sync review on7ff970b86, with no new actionable comments. All five original review threads are resolved.Integration proof with #5970 and the merged #5972 also passed:
pnpm check, the Roleplay command and GPT Image 2.5 regressions, and all 15 focused browser cases across desktop Chromium, mobile Chromium, and mobile WebKit. The final branch treeab24b9356e47590b2dd72adfe0a9938eb8c6fe4aexactly matches that tested combined tree. The Roleplay streaming and TTS regressions also passed after the review fixes.Manual verification notes
Desktop and mobile Commands screenshots were inspected for layout and reuse of existing theme controls. Automated browser interaction covered default-off toggles, selecting the narrator, documents, sound playback requests, and a roll result visible while the follow-up response was still streaming.
Privacy proof covers routing and hiding command text in the normal transcript. It does not claim that an LLM cannot disclose a secret in ordinary narration or that raw chat/debug data is encrypted from the application owner.
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)CHANGELOG.mdand the canonical English UI catalog are updated. Nodocs/files or version-bearing files change.UI evidence (if applicable)
Desktop/mobile screenshots and verification report. Download the gist ZIP and open the HTML files to view the embedded, unmodified screenshots. The files need no scripts or external assets; screenshot artifacts are not committed to this repository. A pre-feature baseline screenshot was not captured.
Summary by CodeRabbit
New Features
Privacy & Reliability
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.