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#7839
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/7619
Author: @SpicyMarinara
Created: 10/14/2026
Status: ✅ Merged
Merged: 10/14/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/send-followups📝 Commits (10+)
88e3403fix(game): store a Game turn with its macros filled ina475e35fix(commands): /remind stores its text like a normal send332a858fix(commands): /send keeps the composer's attachments and reply targetb5b1baafix: keep the submitting chat and a newer reply pick (local review)5a2e48efix: Game turns read chat variables, and /send posts a file with no text6bf212cMerge branch 'staging' into fix/send-followups0ad97b5fix(game): keep a turn raw when the persona or character list failed to load6060432test(game): close the fixture provider even when a cleanup delete fails6b31dfbMerge remote-tracking branch 'origin/fix/send-followups' into fix/send-followups092c651fix(game): put lorebook includes into a Game turn before its macros📊 Changes
8 files changed (+426 additions, -21 deletions)
View changed files
➕
e2e/game-turn-macros.e2e.ts(+202 -0)📝
e2e/roleplay-commands.e2e.ts(+71 -0)📝
packages/client/src/components/chat/ChatInput.tsx(+5 -1)📝
packages/client/src/components/chat/ConversationInput.tsx(+5 -1)📝
packages/client/src/components/game/GameSurface.tsx(+43 -4)📝
packages/client/src/lib/chat-macros.ts(+4 -0)📝
packages/client/src/lib/slash-commands.ts(+46 -2)📝
scripts/regressions/send-command-macros.regression.ts(+50 -13)📄 Description
Linked issue
Follow-up to #7600 (#7585); no separate issue, requested by the maintainer on 2026-10-14.
Why this change
The review of #7600 found three more places where what gets saved doesn't match what you typed or what the chat shows:
{{random}}with one seed and the model's prompt filled it in with another, so the log could show "red" while the model read "green". Without a persona,{{user}}showed "You" in the log and "User" to the model./remindkept raw macros. The reminder text went into its narrator message as typed. That has the same{{random}}problem, and the toast and the "Reminder set" line showed{{user}}as typed./senddropped attachments and the reply. Before a typed command runs, the chat input clears the draft and its attachments./sendalso never passed the reply target. So a/sendwith a file attached or a reply selected posted the text alone, and the file and reply were lost. A/sendwith a file and no text showed the usage line, and the file was gone.What changed
GameSurface.tsx. The Game log and the model then read the same text.[choice: …]and[dice: …]that a regex or a translation could rewrite, and changing that would be a separate feature decision.{{getvar::gold}},{{#if var.gold}}), as the server did when it filled in a raw turn.{{setvar}},{{addvar}},{{incvar}}and the like) is still sent raw, so the server saves the new value as before. Only such a turn can still show one{{random}}pick in the log and another to the model. The code marks this limit with aponytail:note.{{is sent exactly as before, with no wait. A turn with macros waits for the persona and character lists only while they are still loading after the page opens.{{include::…}}) go in first, through theexpandMessageIncludeshelper that #7615 added for Roleplay and Conversation sends and exported for Game. An included entry's{{random}}is then rolled once and saved. Only a turn that uses an include waits for the server. An included entry that changes a chat variable leaves the turn raw, like a typed one./remind: the reminder text now goes through the same step as Send, Post only and/send: user-input regex, then input translation if the chat has it on, then macros. It's the user's own words typed into the chat input, not a character's line, so it is handled like a normal send. The chat, the toast, the confirmation line and the model all get the same text./sysand/asare unchanged: macros in their messages stay as typed on purpose./send: a new helper,withComposerReplyAndAttachmentsinslash-commands.ts, wraps the context for typed commands in both chat inputs (RoleplayChatInputand ConversationConversationInput)./sendposts now carries the attachments and reply target, saved in the same fields Send uses./sendwith a file and no text posts the file on its own, as Post only does./sendis still preparing its text, your new pick stays for the next message./sendposts a user message.{{getvar::x}}saves an empty value and a{{setvar}}is not saved), as they have since #736. That could be a follow-up.e2e/game-turn-macros.e2e.ts. It holds back the persona list and sendsI shout {{random::red::green}}, I am {{user}} with {{getvar::gold}} gold.in a Game chat whosegoldvariable is 12. It checks that the saved turn has one colour, the persona's name and12, that the model's prompt contains that exact text, and that the Session Logs show it. It then sends{{setvar::met::yes}}I wave.and checks that the turn is saved raw and the chat's variables gainmet: yes.I read the sign: {{include::Game Turn Signs::Gate}}, where the entry readsOpen to {{user}} at {{random::dawn::dusk}}, and checks that the saved turn has the entry filled in.I am {{user}}.. It checks that the turn is saved raw and that the model readsI am Pat Persona..e2e/roleplay-commands.e2e.ts, run in Roleplay and Conversation. It attaches a file (and in Conversation, sets a reply) and runs/send Here it is.. It checks that the saved message has the attachment (and the reply), and that the chat input's file chip and reply preview are cleared. It then attaches a second file, runs/sendwith no text, and checks that the file is posted on its own.scripts/regressions/send-command-macros.regression.tsnow also runs the real/remindcommand. It checks that the narrator message and the confirmation line hold the same text a normal send saves. The existing/sendchecks are unchanged, apart from sharing their test setup with the new check.Validation
pnpm checkpasses locallyCONTRIBUTING.mdCommands run by the agent:
7631e7ffe), the Game e2e savedI shout {{random::red::green}}, I am {{user}}./sendattachment e2e tests failed withextra.attachmentsundefined./remindregression saved⏰ **Reminder:** Reply with the following word: {{random::…}}, {{user}}.b5b1baa8b), the Game e2e savedI shout red, I am Pat Persona with gold.(the variable came out empty), and/sendwith only a file posted nothing in both modes.5a2e48eee), the failed-persona-list Game e2e savedI am User..I read the sign: {{include::Game Turn Signs::Gate}}.6bf212c27). On the final head, with the fixes, all of them pass on desktop Chromium, mobile Chromium and mobile WebKit: both Game e2e tests,/sendattachments,/sendmacros and slash argument syntax in both modes,e2e/game-native-dice.e2e.tsande2e/game-one-request-dice.e2e.ts. 39/39.I shout red, I am User..I wave.andmetis never saved.pnpm checkon the final head: exit 0. The one lint warning is already on staging, inHomeProfessorMariChat.tsx.pnpm localization:check: exit 0. No new UI text.pnpm regression:prompt: passes.node ./scripts/run-regressions.mjs --filter …:send-command-macros,conversation-game-slash,roleplay-command,chat-persona-macros,character-identity,user-message-include-macro(1 each),include(2),slash(2),macro(5),persona(5),chat-variable(5) andopen-issues: all pass.game: 264/264.e2e/roleplay-commands.e2e.tson desktop Chromium (5a2e48eee, before the staging merge; later commits of this PR touch only Game code and its test): 23 passed, 1 failed. The failing test, "Roleplay users send and edit private whispers and notes in Manual group chats", fails with the same assertion with this branch's client changes reverted. #7600 reported the same failure on staging.coderabbit review --agent --committed):/sendno longer clears a reply picked while its text was being prepared.--base-commit b5b1baa8b): 0 findings.--base-commit 5a2e48eee): 1 finding, fixed. The Game e2e fixture now closes its fake provider before the cleanup deletes, so a failed delete cannot leave it open. Rerun: 0 findings.--base-commit 6b31dfb76): 0 findings (after one rate-limited attempt).0ad97b588, replied and resolved.Manual verification notes
I pick {{random::red::green::blue}}, I am {{user}}.Then check that the Game log and the Session Logs show one colour and your persona's name, and that Peek prompt shows the same text.goldset to 12 in Chat Settings: sendI count {{getvar::gold}} coins.The Game log and Peek prompt should both showI count 12 coins.. Then send{{setvar::met::yes}}I wave.and check that Chat Settings now listsmetasyes.{{random::a::b}}, then send{{include::<lorebook name>::<entry name>}}. The Game log and Peek prompt should both show the entry's text with the same pick./remind 1m Ask {{user}} about {{random::tea::coffee}}. The "Reminder set" line, the toast after a minute and the narrator message in the chat should all show the same filled-in text, and Peek prompt should show it too./send Here it is.. The message should post with the image and the reply quote, and the reply preview and image chip should clear./send With a file.should post with the file. Then attach a file and send/sendwith no text: the file should post on its own./sys hellowith a file attached still drops the file, as before.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)UI evidence (if applicable)
No visual changes.
Summary by CodeRabbit
New Features
/sendalso supports posts containing only an attachment.Bug Fixes
/remindnow prepares its message text before scheduling and displays the prepared text in its confirmation.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.