mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1653] [MERGED] [codex] Wire roleplay direct-message commands #5185
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#5185
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/1653
Author: @Xelvanis
Created: 5/30/2026
Status: ✅ Merged
Merged: 5/30/2026
Merged by: @Xelvanis
Base:
refactor← Head:codex/roleplay-dm-commands📝 Commits (3)
7e49211Wire roleplay direct-message commands1156a35Suppress blank roleplay DM source messagesd2b0e87Handle blank failed DM command output📊 Changes
7 files changed (+452 additions, -21 deletions)
View changed files
📝
src/engine/generation/connected-commands.test.ts(+265 -3)📝
src/engine/generation/connected-commands.ts(+87 -14)📝
src/engine/generation/prompt-assembly.test.ts(+41 -0)📝
src/engine/generation/prompt-assembly.ts(+23 -1)📝
src/engine/modes/chat/commands/character-commands.test.ts(+27 -1)📝
src/engine/modes/chat/commands/character-commands.ts(+5 -1)📝
src/features/runtime/generation/hooks/use-generate.ts(+4 -1)📄 Description
Linked issue
No linked issue.
Why this change
[dm: character="Name" message="text"]parser, chat metadata toggle, and settings UI already existed, but the parser was not wired into generation.dmexecutor could only post into an already-existing conversation.What changed
metadata.roleplayDmCommandsEnabled === true.[dm:]tags from roleplay output and post the message into the matching Conversation DM.command_errorevents when parsed DM commands cannot find a character or resolve a target conversation, instead of silently losing the hidden command.Refactor impact
Primary owner:
Impact areas reviewed:
[dm:]does not become a general command.Boundary notes:
src/engine.src/features/runtime.Pressure points touched:
persistConnectedCommandTagsin engine generation.assembleGenerationPromptprompt insertion.ooc_posted.Validation
pnpm checkpasses locallypnpm typecheckpasses locallypnpm buildpasses locallypnpm check:architecturepasses locallypnpm check:docspasses locallycargo check --manifest-path src-tauri/Cargo.toml --workspacepasses locallyManual verification notes
pnpm vitest run src/engine/generation/connected-commands.test.ts src/engine/modes/chat/commands/character-commands.test.ts src/engine/generation/prompt-assembly.test.tspassed with 71 tests.pnpm typecheckpassed.pnpm check:architecturepassed.pnpm buildpassed with the existing Vite large chunk warning.git diff --check origin/refactor...HEADpassed.[dm:]reminder still needs in-app spot-checking.Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdNo docs or release files changed. No active changelog/changeset file was found for this slice.
UI evidence
No screenshots or recordings. This change uses the existing settings UI and changes generation/runtime behavior.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.