mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #5991] [MERGED] feat(roleplay): refine command controls, activity and agent integration #7018
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#7018
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/5991
Author: @SpicyMarinara
Created: 9/9/2026
Status: ✅ Merged
Merged: 9/9/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feat/roleplay-command-refinements📝 Commits (4)
fc89099test(roleplay): require concise command instructionsec87904feat(roleplay): refine command controls and swipe-scoped activityb284ea7fix(roleplay): calibrate editor inset and align regression proof2adb161fix(roleplay): separate selector names from descriptions📊 Changes
21 files changed (+1310 additions, -214 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
e2e/roleplay-commands.e2e.ts(+378 -22)📝
packages/client/src/components/chat/ChatMessage.tsx(+8 -1)📝
packages/client/src/components/chat/ChatRoleplaySurface.tsx(+2 -0)📝
packages/client/src/components/chat/RoleplayCommandResults.tsx(+220 -31)📝
packages/client/src/components/chat/RoleplayCommandsSettings.tsx(+101 -45)📝
packages/client/src/hooks/use-chats.ts(+15 -4)📝
packages/client/src/hooks/use-generate.ts(+2 -9)📝
packages/client/src/localization/locales/en.json(+26 -3)📝
packages/server/src/routes/chats.routes.ts(+11 -2)📝
packages/server/src/routes/generate.routes.ts(+191 -63)📝
packages/server/src/routes/generate/conversation-prompt-formatting.ts(+2 -2)📝
packages/server/src/routes/generate/dry-run-route.ts(+8 -0)📝
packages/server/src/services/generation/illustrator-manual-prompt-generation.ts(+4 -0)📝
packages/server/src/services/generation/roleplay-commands.ts(+42 -27)➕
packages/server/src/services/generation/roleplay-rolls.ts(+48 -0)📝
packages/server/src/services/tools/tool-executor.ts(+3 -1)📝
packages/shared/src/types/chat.ts(+11 -1)📝
packages/shared/src/types/roleplay-command.ts(+98 -0)📝
scripts/regressions/maintenance-lifecycle.regression.ts(+3 -2)...and 1 more files
📄 Description
Linked issue
Closes #5990. Owner: @SpicyMarinara.
Why this change
Roleplay commands need usable permissions and visible, spoiler-safe activity. Previously users could not restrict rolls to a narrator, correct command-generated context, or reliably request an illustration using the chat's Illustrator settings and named character portraits. A regenerated reply must also start before the source reply's commands, just as tracker context does.
What changed
The implementation stays in Engine-owned settings, prompt assembly, orchestration and storage. Downloaded agent definitions/prompts are unchanged. Narrator-only permissions require an unambiguous solo/individual responder; merged generation does not grant narrator identity.
Validation
Automated results (checkboxes below remain manual tasks):
pnpm checkpassed, including localization, formatting, TypeScript, ESLint and production builds.pnpm regression:promptpassed all 3 suites. Related Roleplay, dice, Illustrator and prior-reasoning suites passed.status: okfrom/api/health.mari-guard-sibling-pathsandstorage-writer-lock) reproduce at the same assertions on clean staging8cdb28f04. Both passed in this PR's Linux CI run. The final full Node regression suite passed in Linux CI; all required checks passed and CodeRabbit completed its final review with no new findings. The complete optional browser matrix also passed on the final commit.Prompt/storage proof includes positive and negative rows: owner/narrator/unrelated-character isolation, All/Narrator execution, unattached agents, source/future context exclusion on regeneration, selected-swipe continuation, branching, edit failure/retry, deletion without resurrection, delayed saves after swipe switching, cross-chat rejection, invalid swipe indices, and legacy extras. Real local provider fixtures exercise native/tagged rolls and the full host Combat/Illustrator request path, including actual avatar multipart bytes and image overrides.
Physical iPhone and an independent manual browser session were unavailable. Browser emulation and local provider fixtures do not establish real-device behavior or real-model judgment.
Docs and release impact
Added a user-focused Unreleased changelog entry and updated canonical English UI strings. No release metadata or user documentation files changed.
UI evidence (if applicable)
Before/after screenshots and validation details. Original automated-browser PNGs are embedded in the downloadable HTML; the before image is from the prior Commands implementation proof. Evidence includes desktop/mobile, dark/light settings, narrator controls, edited context and collapsed activity.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.