[PR #7425] [MERGED] feat(scenes): let Scene characters reply in the source conversation #7731

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7425
Author: @Gunterlie
Created: 10/11/2026
Status: ✅ Merged
Merged: 10/11/2026
Merged by: @Gunterlie

Base: staging ← Head: free-bird-still-in-the-scene


📝 Commits (3)

  • e8046fe feat(scenes): let Scene characters reply in the source conversation
  • 4b6c902 fix(scenes): shorten the reply switch hint
  • afc3e2c Merge remote-tracking branch 'origin/staging' into free-bird-still-in-the-scene

📊 Changes

10 files changed (+76 additions, -7 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 packages/client/src/components/chat/ChatArea.tsx (+1 -0)
📝 packages/client/src/components/chat/ConversationView.tsx (+7 -1)
📝 packages/client/src/components/chat/SceneBanner.tsx (+18 -0)
📝 packages/client/src/localization/locales/en.json (+3 -1)
📝 packages/server/src/routes/generate.routes.ts (+10 -2)
📝 packages/server/src/routes/generate/conversation-presence-runtime.ts (+10 -2)
📝 packages/server/src/services/generation/scene-context-runtime.ts (+6 -1)
📝 packages/shared/src/types/chat-preset.ts (+1 -0)
📝 scripts/regressions/scene-participants.regression.ts (+19 -0)

📄 Description

Linked issue

Refs #7383

Why this change

Since 2.5.0 (#6554), characters in an active Scene cannot reply in the Conversation that started it. That was a deliberate choice, but some users want the old behaviour: chat with a character about the Scene while it runs. #7384 already fixed the misleading "offline" notice; this gives users the choice back without changing the default.

What changed

  • The origin Scene card in the Conversation ("A scene is in progress") gets an Allow replies here switch. Off by default, so #6554 behaviour is unchanged unless the user opts in.
  • The switch stores sceneOriginRepliesAllowed on the Scene chat metadata, so it disappears with the Scene (conclude, abandon) and never carries over to presets or forks.
  • resolveSceneBusyCharacterIds() is the single gate every reply path already uses. It takes a new userReply option and returns no busy characters when the switch is on. User-started replies, Continue, the presence-delay recheck and merged group replies pass userReply; autonomous messages and character-to-character exchanges do not, so participants still do not message on their own during the Scene (the pre-2.5.0 behaviour).
  • The Scene-busy notice now points to the switch.

Validation

  • pnpm check passed (localization, format, lint, types, build).
  • scene-participants regression passed, with a new case: switch on frees user replies, autonomous replies stay paused, switch off restores the block.
  • Playwright (Chromium) on a seeded Conversation with an active Scene at 390 px and 1440 px: switch toggles, persists across reload. Screenshots checked for alignment; the label fits on one line on mobile.
  • Local CodeRabbit: one copy finding (hint length), fixed.

Manual verification

  • Manually verify in a real Conversation: start a Scene, turn on Allow replies here, and confirm the character answers in the Conversation.
  • Manually verify the character does not send autonomous messages in the Conversation while the Scene runs.
  • Manually verify that ending the Scene removes the card and replies work as before.

Known limits

  • The Conversation prompt is not told about the running Scene, so the character only knows what you tell them about it. This matches pre-2.5.0 behaviour; adding Scene context to the Conversation prompt is a possible follow-up.
  • One switch per Scene, not per character.

Docs and release impact

Changelog entry added. No docs, version, or dependency changes.

Summary by CodeRabbit

  • New Features
    • Scene cards now include an off-by-default Allow replies here setting for the originating conversation. When enabled, characters in the active Scene can reply in that conversation while the Scene runs, but they will not send messages there autonomously.
  • Bug Fixes
    • With the setting off, characters remain unavailable for replies while the Scene is active. The notice now points to the setting or ending the Scene as ways to resume replies.

🔄 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/7425 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 10/11/2026 **Status:** ✅ Merged **Merged:** 10/11/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `free-bird-still-in-the-scene` --- ### 📝 Commits (3) - [`e8046fe`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e8046fe80940a216d9e3e44280bd90741dcb0398) feat(scenes): let Scene characters reply in the source conversation - [`4b6c902`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4b6c902eb79b05e96970b99f18afb8130e106598) fix(scenes): shorten the reply switch hint - [`afc3e2c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/afc3e2ca24c2cfa56b710ea8d8d53cb2b7a03f3c) Merge remote-tracking branch 'origin/staging' into free-bird-still-in-the-scene ### 📊 Changes **10 files changed** (+76 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `packages/client/src/components/chat/ChatArea.tsx` (+1 -0) 📝 `packages/client/src/components/chat/ConversationView.tsx` (+7 -1) 📝 `packages/client/src/components/chat/SceneBanner.tsx` (+18 -0) 📝 `packages/client/src/localization/locales/en.json` (+3 -1) 📝 `packages/server/src/routes/generate.routes.ts` (+10 -2) 📝 `packages/server/src/routes/generate/conversation-presence-runtime.ts` (+10 -2) 📝 `packages/server/src/services/generation/scene-context-runtime.ts` (+6 -1) 📝 `packages/shared/src/types/chat-preset.ts` (+1 -0) 📝 `scripts/regressions/scene-participants.regression.ts` (+19 -0) </details> ### 📄 Description ## Linked issue Refs #7383 ## Why this change Since 2.5.0 (#6554), characters in an active Scene cannot reply in the Conversation that started it. That was a deliberate choice, but some users want the old behaviour: chat with a character about the Scene while it runs. #7384 already fixed the misleading "offline" notice; this gives users the choice back without changing the default. ## What changed - The origin Scene card in the Conversation ("A scene is in progress") gets an **Allow replies here** switch. Off by default, so #6554 behaviour is unchanged unless the user opts in. - The switch stores `sceneOriginRepliesAllowed` on the **Scene chat** metadata, so it disappears with the Scene (conclude, abandon) and never carries over to presets or forks. - `resolveSceneBusyCharacterIds()` is the single gate every reply path already uses. It takes a new `userReply` option and returns no busy characters when the switch is on. User-started replies, Continue, the presence-delay recheck and merged group replies pass `userReply`; autonomous messages and character-to-character exchanges do not, so participants still do not message on their own during the Scene (the pre-2.5.0 behaviour). - The Scene-busy notice now points to the switch. ## Validation - `pnpm check` passed (localization, format, lint, types, build). - `scene-participants` regression passed, with a new case: switch on frees user replies, autonomous replies stay paused, switch off restores the block. - Playwright (Chromium) on a seeded Conversation with an active Scene at 390 px and 1440 px: switch toggles, persists across reload. Screenshots checked for alignment; the label fits on one line on mobile. - Local CodeRabbit: one copy finding (hint length), fixed. ## Manual verification - [ ] Manually verify in a real Conversation: start a Scene, turn on **Allow replies here**, and confirm the character answers in the Conversation. - [ ] Manually verify the character does not send autonomous messages in the Conversation while the Scene runs. - [ ] Manually verify that ending the Scene removes the card and replies work as before. ## Known limits - The Conversation prompt is not told about the running Scene, so the character only knows what you tell them about it. This matches pre-2.5.0 behaviour; adding Scene context to the Conversation prompt is a possible follow-up. - One switch per Scene, not per character. ## Docs and release impact Changelog entry added. No docs, version, or dependency changes. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Scene cards now include an off-by-default **Allow replies here** setting for the originating conversation. When enabled, characters in the active Scene can reply in that conversation while the Scene runs, but they will not send messages there autonomously. * **Bug Fixes** * With the setting off, characters remain unavailable for replies while the Scene is active. The notice now points to the setting or ending the Scene as ways to resume replies. <!-- 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:06:56 +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#7731
No description provided.