[PR #7619] [MERGED] fix: Game turns and /remind store resolved macros, /send keeps attachments and reply (#7600 follow-up) #7839

Closed
opened 2026-10-24 04:08:02 +07:00 by bsakaguchi · 0 comments
Owner

📋 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+)

  • 88e3403 fix(game): store a Game turn with its macros filled in
  • a475e35 fix(commands): /remind stores its text like a normal send
  • 332a858 fix(commands): /send keeps the composer's attachments and reply target
  • b5b1baa fix: keep the submitting chat and a newer reply pick (local review)
  • 5a2e48e fix: Game turns read chat variables, and /send posts a file with no text
  • 6bf212c Merge branch 'staging' into fix/send-followups
  • 0ad97b5 fix(game): keep a turn raw when the persona or character list failed to load
  • 6060432 test(game): close the fixture provider even when a cleanup delete fails
  • 6b31dfb Merge remote-tracking branch 'origin/fix/send-followups' into fix/send-followups
  • 092c651 fix(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

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

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:

  • Game turns kept raw macros. A Game player message was saved exactly as typed. The Game log filled in {{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.
  • /remind kept 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.
  • /send dropped attachments and the reply. Before a typed command runs, the chat input clears the draft and its attachments. /send also never passed the reply target. So a /send with a file attached or a reply selected posted the text alone, and the file and reply were lost. A /send with a file and no text showed the usage line, and the file was gone.

What changed

  • Game: every Game turn now saves its macros filled in, the same way a Roleplay or Conversation send does. That covers typed turns, choices, quick-time actions, dice, combat results, item use and Experience turns, because they all go through one send function in GameSurface.tsx. The Game log and the model then read the same text.
    • Game still skips user-input regex scripts and input translation, as before. Game turns carry engine tags like [choice: …] and [dice: …] that a regex or a translation could rewrite, and changing that would be a separate feature decision.
    • A turn reads the chat's variables ({{getvar::gold}}, {{#if var.gold}}), as the server did when it filled in a raw turn.
    • A turn that changes a chat variable ({{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 a ponytail: note.
    • A turn with no {{ 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.
    • If the persona or character list fails to load, the turn is sent raw and the server fills it in, as before, so it never saves "User" in place of your persona's name.
    • Lorebook includes ({{include::…}}) go in first, through the expandMessageIncludes helper 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. /sys and /as are unchanged: macros in their messages stay as typed on purpose.
    • For Mari to confirm: with Translate input on, a reminder is translated like a sent message, so the "Reminder set" line and the toast show the translated text too, as the chat does after Send. Filling in macros only, as Game does, would keep your own words in the toast. Say if you prefer that.
  • /send: a new helper, withComposerReplyAndAttachments in slash-commands.ts, wraps the context for typed commands in both chat inputs (Roleplay ChatInput and Conversation ConversationInput).
    • The user message /send posts now carries the attachments and reply target, saved in the same fields Send uses.
    • A /send with a file and no text posts the file on its own, as Post only does.
    • The reply preview clears as it does after Send, and comes back if the post fails. If you pick a different reply while /send is still preparing its text, your new pick stays for the next message.
    • Other commands work as before. Only /send posts a user message.
  • Not changed: Roleplay and Conversation Send still fill chat variables in as empty ({{getvar::x}} saves an empty value and a {{setvar}} is not saved), as they have since #736. That could be a follow-up.
  • Tests:
    • New e2e e2e/game-turn-macros.e2e.ts. It holds back the persona list and sends I shout {{random::red::green}}, I am {{user}} with {{getvar::gold}} gold. in a Game chat whose gold variable is 12. It checks that the saved turn has one colour, the persona's name and 12, 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 gain met: yes.
    • The same test then sends I read the sign: {{include::Game Turn Signs::Gate}}, where the entry reads Open to {{user}} at {{random::dawn::dusk}}, and checks that the saved turn has the entry filled in.
    • A second test in that file makes the persona list fail to load and sends I am {{user}}.. It checks that the turn is saved raw and that the model reads I am Pat Persona..
    • New e2e in 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 /send with no text, and checks that the file is posted on its own.
    • scripts/regressions/send-command-macros.regression.ts now also runs the real /remind command. It checks that the narrator message and the confirmation line hold the same text a normal send saves. The existing /send checks are unchanged, apart from sharing their test setup with the new check.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Commands run by the agent:

  • Each bug was reproduced first, with the new tests and before the fixes:
    • On staging (7631e7ffe), the Game e2e saved I shout {{random::red::green}}, I am {{user}}.
    • On staging, both /send attachment e2e tests failed with extra.attachments undefined.
    • On staging, the /remind regression saved ⏰ **Reminder:** Reply with the following word: {{random::…}}, {{user}}.
    • On the first version of this PR (b5b1baa8b), the Game e2e saved I shout red, I am Pat Persona with gold. (the variable came out empty), and /send with only a file posted nothing in both modes.
    • Before the list check (5a2e48eee), the failed-persona-list Game e2e saved I am User..
    • Without the include step in Game, the Game e2e saved I read the sign: {{include::Game Turn Signs::Gate}}.
  • The branch now includes staging up to #7613 and #7615 (merge 6bf212c27). On the final head, with the fixes, all of them pass on desktop Chromium, mobile Chromium and mobile WebKit: both Game e2e tests, /send attachments, /send macros and slash argument syntax in both modes, e2e/game-native-dice.e2e.ts and e2e/game-one-request-dice.e2e.ts. 39/39.
  • Mutation checks:
    • With the Game list wait removed, the Game e2e fails and saves I shout red, I am User..
    • With variable-changing turns filled in on the client, the Game e2e fails: it saves I wave. and met is never saved.
  • pnpm check on the final head: exit 0. The one lint warning is already on staging, in HomeProfessorMariChat.tsx.
  • pnpm localization:check: exit 0. No new UI text.
  • pnpm regression:prompt: passes.
  • node ./scripts/run-regressions.mjs --filter …:
    • On the final head: 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) and open-issues: all pass.
    • game: 264/264.
  • Other e2e:
    • Full e2e/roleplay-commands.e2e.ts on 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.
  • Local CodeRabbit (coderabbit review --agent --committed):
    • First run: 2 minor findings, both fixed in the fourth commit. A Game turn that waits for the lists now uses the chat it was sent from. /send no longer clears a reply picked while its text was being prepared.
    • Rerun on that branch: 0 findings.
    • Run on the review-fix commit (--base-commit b5b1baa8b): 0 findings.
    • Run on the list-check commit (--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.
    • Run on the include commit (--base-commit 6b31dfb76): 0 findings (after one rate-limited attempt).
  • GitHub CodeRabbit: 1 thread (a failed list load saved "User" in a Game turn). Fixed in 0ad97b588, replied and resolved.

Manual verification notes

  • Manually verify in a Game chat with a persona: send 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.
  • Manually verify in a Game chat with a chat variable gold set to 12 in Chat Settings: send I count {{getvar::gold}} coins. The Game log and Peek prompt should both show I count 12 coins.. Then send {{setvar::met::yes}}I wave. and check that Chat Settings now lists met as yes.
  • Manually verify in a Game chat: make a lorebook entry whose text has {{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.
  • Manually verify that a Game choice, a dice roll from the dice menu and a normal typed turn without macros still send at once, as before.
  • Manually verify in a Roleplay chat: /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.
  • Manually verify in a Conversation chat: pick Reply on a message, attach an image, then type /send Here it is.. The message should post with the image and the reply quote, and the reply preview and image chip should clear.
  • Manually verify in a Roleplay chat: attach a file, then /send With a file. should post with the file. Then attach a file and send /send with no text: the file should post on its own.
  • Manually verify that Send and Post only with attachments and a reply still behave as before, and that a command like /sys hello with a file attached still drops the file, as before.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

No visual changes.

Summary by CodeRabbit

  • New Features

    • Game chat turns now resolve supported macros and lorebook includes before generating a response when the required character and persona data is available.
    • Slash commands can include the composer’s attachments and pending reply target in messages they create. /send also supports posts containing only an attachment.
  • Bug Fixes

    • /remind now 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.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/7619 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/14/2026 **Status:** ✅ Merged **Merged:** 10/14/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/send-followups` --- ### 📝 Commits (10+) - [`88e3403`](https://github.com/Pasta-Devs/Marinara-Engine/commit/88e340396d68eeb2eaf9fd530771ec1209a569ed) fix(game): store a Game turn with its macros filled in - [`a475e35`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a475e35f44826c4de884fe98d3e9996329535473) fix(commands): /remind stores its text like a normal send - [`332a858`](https://github.com/Pasta-Devs/Marinara-Engine/commit/332a8585e58dfaec95a1ead62c7cef02d78d04cc) fix(commands): /send keeps the composer's attachments and reply target - [`b5b1baa`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b5b1baa8b0f6116803a74dc4f4440004596e96bd) fix: keep the submitting chat and a newer reply pick (local review) - [`5a2e48e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5a2e48eee3ee057cb56d1ee39745a872e5a1d226) fix: Game turns read chat variables, and /send posts a file with no text - [`6bf212c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6bf212c27c844022d40c33881bea6cc59123f841) Merge branch 'staging' into fix/send-followups - [`0ad97b5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0ad97b588fa7e53e63626a744ee84e9ff2771475) fix(game): keep a turn raw when the persona or character list failed to load - [`6060432`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6060432331157d85584c4f27b4770804a08358c4) test(game): close the fixture provider even when a cleanup delete fails - [`6b31dfb`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6b31dfb76bc3f366ea9217154a70db64d728fca4) Merge remote-tracking branch 'origin/fix/send-followups' into fix/send-followups - [`092c651`](https://github.com/Pasta-Devs/Marinara-Engine/commit/092c651dd3f0c2338b284e3d1a6b51ea959841ac) fix(game): put lorebook includes into a Game turn before its macros ### 📊 Changes **8 files changed** (+426 additions, -21 deletions) <details> <summary>View changed files</summary> ➕ `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) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. <!-- See CONTRIBUTING.md § Branches. --> ## 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: - **Game turns kept raw macros.** A Game player message was saved exactly as typed. The Game log filled in `{{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. - **`/remind` kept 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. - **`/send` dropped attachments and the reply.** Before a typed command runs, the chat input clears the draft and its attachments. `/send` also never passed the reply target. So a `/send` with a file attached or a reply selected posted the text alone, and the file and reply were lost. A `/send` with a file and no text showed the usage line, and the file was gone. ## What changed - **Game:** every Game turn now saves its macros filled in, the same way a Roleplay or Conversation send does. That covers typed turns, choices, quick-time actions, dice, combat results, item use and Experience turns, because they all go through one send function in `GameSurface.tsx`. The Game log and the model then read the same text. - Game still skips user-input regex scripts and input translation, as before. Game turns carry engine tags like `[choice: …]` and `[dice: …]` that a regex or a translation could rewrite, and changing that would be a separate feature decision. - A turn reads the chat's variables (`{{getvar::gold}}`, `{{#if var.gold}}`), as the server did when it filled in a raw turn. - A turn that changes a chat variable (`{{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 a `ponytail:` note. - A turn with no `{{` 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. - If the persona or character list fails to load, the turn is sent raw and the server fills it in, as before, so it never saves "User" in place of your persona's name. - Lorebook includes (`{{include::…}}`) go in first, through the `expandMessageIncludes` helper 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. `/sys` and `/as` are unchanged: macros in their messages stay as typed on purpose. - **For Mari to confirm:** with Translate input on, a reminder is translated like a sent message, so the "Reminder set" line and the toast show the translated text too, as the chat does after Send. Filling in macros only, as Game does, would keep your own words in the toast. Say if you prefer that. - **`/send`:** a new helper, `withComposerReplyAndAttachments` in `slash-commands.ts`, wraps the context for typed commands in both chat inputs (Roleplay `ChatInput` and Conversation `ConversationInput`). - The user message `/send` posts now carries the attachments and reply target, saved in the same fields Send uses. - A `/send` with a file and no text posts the file on its own, as Post only does. - The reply preview clears as it does after Send, and comes back if the post fails. If you pick a different reply while `/send` is still preparing its text, your new pick stays for the next message. - Other commands work as before. Only `/send` posts a user message. - **Not changed:** Roleplay and Conversation Send still fill chat variables in as empty (`{{getvar::x}}` saves an empty value and a `{{setvar}}` is not saved), as they have since #736. That could be a follow-up. - Tests: - New e2e `e2e/game-turn-macros.e2e.ts`. It holds back the persona list and sends `I shout {{random::red::green}}, I am {{user}} with {{getvar::gold}} gold.` in a Game chat whose `gold` variable is 12. It checks that the saved turn has one colour, the persona's name and `12`, 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 gain `met: yes`. - The same test then sends `I read the sign: {{include::Game Turn Signs::Gate}}`, where the entry reads `Open to {{user}} at {{random::dawn::dusk}}`, and checks that the saved turn has the entry filled in. - A second test in that file makes the persona list fail to load and sends `I am {{user}}.`. It checks that the turn is saved raw and that the model reads `I am Pat Persona.`. - New e2e in `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 `/send` with no text, and checks that the file is posted on its own. - `scripts/regressions/send-command-macros.regression.ts` now also runs the real `/remind` command. It checks that the narrator message and the confirmation line hold the same text a normal send saves. The existing `/send` checks are unchanged, apart from sharing their test setup with the new check. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` Commands run by the agent: - Each bug was reproduced first, with the new tests and before the fixes: - On staging (7631e7ffe), the Game e2e saved `I shout {{random::red::green}}, I am {{user}}.` - On staging, both `/send` attachment e2e tests failed with `extra.attachments` undefined. - On staging, the `/remind` regression saved `⏰ **Reminder:** Reply with the following word: {{random::…}}, {{user}}`. - On the first version of this PR (b5b1baa8b), the Game e2e saved `I shout red, I am Pat Persona with gold.` (the variable came out empty), and `/send` with only a file posted nothing in both modes. - Before the list check (5a2e48eee), the failed-persona-list Game e2e saved `I am User.`. - Without the include step in Game, the Game e2e saved `I read the sign: {{include::Game Turn Signs::Gate}}`. - The branch now includes staging up to #7613 and #7615 (merge 6bf212c27). On the final head, with the fixes, all of them pass on desktop Chromium, mobile Chromium and mobile WebKit: both Game e2e tests, `/send` attachments, `/send` macros and slash argument syntax in both modes, `e2e/game-native-dice.e2e.ts` and `e2e/game-one-request-dice.e2e.ts`. 39/39. - Mutation checks: - With the Game list wait removed, the Game e2e fails and saves `I shout red, I am User.`. - With variable-changing turns filled in on the client, the Game e2e fails: it saves `I wave.` and `met` is never saved. - `pnpm check` on the final head: exit 0. The one lint warning is already on staging, in `HomeProfessorMariChat.tsx`. - `pnpm localization:check`: exit 0. No new UI text. - `pnpm regression:prompt`: passes. - `node ./scripts/run-regressions.mjs --filter …`: - On the final head: `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) and `open-issues`: all pass. - `game`: 264/264. - Other e2e: - Full `e2e/roleplay-commands.e2e.ts` on 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. - Local CodeRabbit (`coderabbit review --agent --committed`): - First run: 2 minor findings, both fixed in the fourth commit. A Game turn that waits for the lists now uses the chat it was sent from. `/send` no longer clears a reply picked while its text was being prepared. - Rerun on that branch: 0 findings. - Run on the review-fix commit (`--base-commit b5b1baa8b`): 0 findings. - Run on the list-check commit (`--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. - Run on the include commit (`--base-commit 6b31dfb76`): 0 findings (after one rate-limited attempt). - GitHub CodeRabbit: 1 thread (a failed list load saved "User" in a Game turn). Fixed in 0ad97b588, replied and resolved. ### Manual verification notes - Manually verify in a Game chat with a persona: send `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. - Manually verify in a Game chat with a chat variable `gold` set to 12 in Chat Settings: send `I count {{getvar::gold}} coins.` The Game log and **Peek prompt** should both show `I count 12 coins.`. Then send `{{setvar::met::yes}}I wave.` and check that Chat Settings now lists `met` as `yes`. - Manually verify in a Game chat: make a lorebook entry whose text has `{{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. - Manually verify that a Game choice, a dice roll from the dice menu and a normal typed turn without macros still send at once, as before. - Manually verify in a Roleplay chat: `/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. - Manually verify in a Conversation chat: pick **Reply** on a message, attach an image, then type `/send Here it is.`. The message should post with the image and the reply quote, and the reply preview and image chip should clear. - Manually verify in a Roleplay chat: attach a file, then `/send With a file.` should post with the file. Then attach a file and send `/send` with no text: the file should post on its own. - Manually verify that **Send** and **Post only** with attachments and a reply still behave as before, and that a command like `/sys hello` with a file attached still drops the file, as before. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) No visual changes. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Game chat turns now resolve supported macros and lorebook includes before generating a response when the required character and persona data is available. * Slash commands can include the composer’s attachments and pending reply target in messages they create. `/send` also supports posts containing only an attachment. * **Bug Fixes** * `/remind` now prepares its message text before scheduling and displays the prepared text in its confirmation. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-24 04:08:02 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#7839
No description provided.