mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
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#7873
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/7673
Author: @Gunterlie
Created: 10/15/2026
Status: ✅ Merged
Merged: 10/15/2026
Merged by: @Gunterlie
Base:
staging← Head:chore/7573-reply-commands📝 Commits (2)
b010488refactor(generate): move the reply command parsing into reply-commands.tsc8c5d5bMerge remote-tracking branch 'origin/staging' into chore/7573-reply-commands📊 Changes
3 files changed (+313 additions, -113 deletions)
View changed files
📝
packages/server/src/routes/generate.routes.ts(+23 -113)➕
packages/server/src/routes/generate/reply-commands.ts(+144 -0)➕
scripts/regressions/generate-reply-commands.regression.ts(+146 -0)📄 Description
Linked issue
Part of #7573 (third slice). Stacked on #7672 (which is stacked on #7671): merge those first, then retarget this PR to
staging.Why this change
The post-generation step of the generation handler is about 2,450 lines and writes
fullResponsewell over 100 times, so it is split in small parts. This is the first part: the reply command parsing. It was about 100 lines in the middle ofgenerateForCharacter, with the selfie recovery and the direct-message parse mixed into the route state. As pure functions with their own regression, the rules (which speaker a command belongs to, when a recovered selfie counts, when the character list is read) are testable without a model.No behaviour change.
What changed
packages/server/src/routes/generate/reply-commands.ts:parseConversationReplyCommandscovers the speaker-attributed character-command parse, the enabled-command filter and the implicit-selfie recovery.parseRoleplayDmReplyCommandscovers the roleplay direct-message parse and its fallback text for a target without a card.generate.routes.ts(now about 15,100 lines) keeps every write to its own state at the two call sites.scripts/regressions/generate-reply-commands.regression.ts. It covers per-speaker attribution in a merged group, the selfie recovery, a disabled command (stripped, no command content), the cardless DM fallback, and that the character list is not read when there is no DM command.Validation
pnpm checkpasses locallyCONTRIBUTING.mdAgent-run results (not a substitute for the boxes above):
pnpm check: passed.generate-reply-commands, plus a sweep of 30 regressions: every one that readsgenerate.routes.tsand every one that covers character commands, selfies or direct messages. No source pin needed a change.Manual verification notes
[selfie]produces a selfie from that character.[dm: …]to a character with a card reaches that character, and one to a name without a card shows the fallback text.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.