[GH-ISSUE #583] [Issue]: Creating a scene from a conversation clears the convo's connected RP chat, even after the scene concludes #268

Closed
opened 2026-10-20 17:26:59 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @aidanbrocklebank on GitHub (May 9, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/583

Originally assigned to: @Promansis on GitHub.

Summary

When a chat convo which has a "connected chat" creates a scene, that scene becomes the connected chat for the convo. But when the scene ends, the convo doesn't get it's original chat back, it just appears to have no connected chat anymore.

Expected behavior

I'm not 100% what the expected/intended behavior is here. My guess would be that the originally connected RP chat should return as the "connected chat" for the convo, after the scene concludes. Alternatively the scene should never replace the connected RP chat at all.

Actual behavior

When a convo and an RP chat are connected, they are both aware of each other. But after the convo triggers a scene which then concludes, the convo is no longer aware of the connected chat. The RP still believes that it is connected to the convo however.

You also are not able to manually repair the relationship, as the RP chat which was originally connected does not appear on the list of options.

Steps to reproduce

  1. Create a convo with a connected RP chat.
  2. Get the bot to trigger a scene
  3. Conclude the scene.
  4. The convo no longer has a connected chat.

Environment

  • Marinara Engine version: v1.5.8
  • Install type: Git
  • OS + version: Windows 11
  • Browser or app shell: Firefox, Chrome

Logs, screenshots, or video

Additional context

I think this bug is initially possible because connectChats in chats.storage.ts doesn't check whether one of the two chats already has a connected chat, and if it does the other side of that relationship is left dangling. It's possible we could omit calling connectChats entirely for the scene and just use sceneOriginChatId for anything that an RP would usually use the connected chat for?

You also can't manually repair it because from the RP's perspective it does still have a connected convo, which is why it doesn't appear in the list of RP chats you can connect.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @aidanbrocklebank on GitHub (May 9, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/583 Originally assigned to: @Promansis on GitHub. ## Summary When a chat convo which has a "connected chat" creates a scene, that scene becomes the connected chat for the convo. But when the scene ends, the convo doesn't get it's original chat back, it just appears to have no connected chat anymore. ## Expected behavior I'm not 100% what the expected/intended behavior is here. My guess would be that the originally connected RP chat should return as the "connected chat" for the convo, after the scene concludes. Alternatively the scene should never replace the connected RP chat at all. ## Actual behavior When a convo and an RP chat are connected, they are both aware of each other. But after the convo triggers a scene which then concludes, the convo is no longer aware of the connected chat. The RP still believes that it is connected to the convo however. You also are not able to manually repair the relationship, as the RP chat which was originally connected does not appear on the list of options. ## Steps to reproduce 1. Create a convo with a connected RP chat. 2. Get the bot to trigger a scene 3. Conclude the scene. 4. The convo no longer has a connected chat. ## Environment - Marinara Engine version: v1.5.8 - Install type: Git - OS + version: Windows 11 - Browser or app shell: Firefox, Chrome ## Logs, screenshots, or video <!-- Paste relevant logs and add screenshots when possible --> ## Additional context I think this bug is initially possible because `connectChats` in `chats.storage.ts` doesn't check whether one of the two chats already has a connected chat, and if it does the other side of that relationship is left dangling. It's possible we could omit calling `connectChats` entirely for the scene and just use `sceneOriginChatId` for anything that an RP would usually use the connected chat for? You also can't manually repair it because from the RP's perspective it does still have a connected convo, which is why it doesn't appear in the list of RP chats you can connect. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:26:59 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@Promansis commented on GitHub (May 9, 2026):

I don't believe they are supposed to. Scenes are meant to be disposable little RP bubbles like memories or fun things that don't mean/do much long term development. The summary is what keeps the context with the convo, otherwise it would just destroy context.

<!-- gh-comment-id:4413067099 --> @Promansis commented on GitHub (May 9, 2026): I don't believe they are supposed to. Scenes are meant to be disposable little RP bubbles like memories or fun things that don't mean/do much long term development. The summary is what keeps the context with the convo, otherwise it would just destroy context.
Author
Owner

@aidanbrocklebank commented on GitHub (May 9, 2026):

@Promansis I don't quite understand why this issue was closed. The current behaviour is wrong/bugged regardless of the intended behaviour.

Scenes are meant to be disposable little RP bubbles

If so, the creation of a scene shouldn't replace the existing full RP as the "connected chat" right? But it does at the moment.

And the replacement is incomplete, because the full RP still thinks it is the connected chat, so the perspective of the convo and the RP chat are inconsistent with each other.

<!-- gh-comment-id:4413767408 --> @aidanbrocklebank commented on GitHub (May 9, 2026): @Promansis I don't quite understand why this issue was closed. The current behaviour is wrong/bugged regardless of the intended behaviour. > Scenes are meant to be disposable little RP bubbles If so, the creation of a scene shouldn't replace the existing full RP as the "connected chat" right? But it does at the moment. And the replacement is incomplete, because the full RP still thinks it is the connected chat, so the perspective of the convo and the RP chat are inconsistent with each other.
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#268
No description provided.