[GH-ISSUE #1517] [Issue]: Scene clone/convert loses hidden origin continuity in future prompts #765

Closed
opened 2026-10-20 17:33:06 +07:00 by bsakaguchi · 0 comments
Owner

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

Originally assigned to: @Promansis on GitHub.

During the Roleplay A12 native scene lifecycle audit on origin/refactor commit 229e7d89, scene clone/convert produced standalone chats that lost the origin continuity in future generation prompts.

Related smoke umbrella: #1486.

Repro

  1. In a Roleplay chat with one character, persona, lorebook, active agent/tool metadata, and a deterministic local OpenAI-compatible test connection, start a scene through the Roleplay input with /scene ....
  2. Verify the scene is created and active:
    • scene chat has metadata.sceneOriginChatId
    • origin chat has metadata.activeSceneChatId
    • scene messages contain the participation guide and first assistant scene message
  3. From the active scene, use Clone from here.
  4. Send one message in the cloned standalone Roleplay.
  5. Inspect the saved generationPromptSnapshot for that cloned-chat response.
  6. Repeat with Convert; it creates the same continuity-message shape.

Expected

The standalone clone/converted chat should carry enough origin/scene continuity into future generation prompts to preserve the scene branch context. If includePreSceneSummary creates the continuity note, that note should be available to prompt assembly or represented by equivalent metadata.

Actual

forkRoleplayScene(...) strips scene lifecycle metadata via forkMetadata(...), then writes the continuity note with:

extra: { hiddenFromAi: true, isSceneContinuity: true }

Prompt assembly filters hidden-from-AI messages, so the next cloned-chat generation did not include the origin conversation context, relationship history, scene scenario, scene system prompt, or the continuity note text.

In the deterministic A12 probe, the cloned chat's next prompt snapshot had:

  • includesOriginUser: false
  • includesOriginAssistant: false
  • includesRelationship: false
  • includesScenario: false
  • includesSceneSystem: false
  • includesHiddenContinuity: false
  • includesGuide: true
  • includesDescription: true

The visible copied scene messages stayed in history, but the hidden origin/scene continuity that clone/convert appears designed to preserve was unavailable to the model.

Likely Owner

src/engine/modes/roleplay/scene/scene-service.ts

Likely paths to inspect:

  • forkRoleplayScene(...)
  • forkMetadata(...)
  • buildForkContinuityMessage(...)
  • hidden-from-AI semantics used by prompt assembly
Originally created by @Xelvanis on GitHub (May 29, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1517 Originally assigned to: @Promansis on GitHub. During the Roleplay A12 native scene lifecycle audit on `origin/refactor` commit `229e7d89`, scene clone/convert produced standalone chats that lost the origin continuity in future generation prompts. Related smoke umbrella: #1486. ## Repro 1. In a Roleplay chat with one character, persona, lorebook, active agent/tool metadata, and a deterministic local OpenAI-compatible test connection, start a scene through the Roleplay input with `/scene ...`. 2. Verify the scene is created and active: - scene chat has `metadata.sceneOriginChatId` - origin chat has `metadata.activeSceneChatId` - scene messages contain the participation guide and first assistant scene message 3. From the active scene, use `Clone from here`. 4. Send one message in the cloned standalone Roleplay. 5. Inspect the saved `generationPromptSnapshot` for that cloned-chat response. 6. Repeat with `Convert`; it creates the same continuity-message shape. ## Expected The standalone clone/converted chat should carry enough origin/scene continuity into future generation prompts to preserve the scene branch context. If `includePreSceneSummary` creates the continuity note, that note should be available to prompt assembly or represented by equivalent metadata. ## Actual `forkRoleplayScene(...)` strips scene lifecycle metadata via `forkMetadata(...)`, then writes the continuity note with: ```ts extra: { hiddenFromAi: true, isSceneContinuity: true } ``` Prompt assembly filters hidden-from-AI messages, so the next cloned-chat generation did not include the origin conversation context, relationship history, scene scenario, scene system prompt, or the continuity note text. In the deterministic A12 probe, the cloned chat's next prompt snapshot had: - `includesOriginUser: false` - `includesOriginAssistant: false` - `includesRelationship: false` - `includesScenario: false` - `includesSceneSystem: false` - `includesHiddenContinuity: false` - `includesGuide: true` - `includesDescription: true` The visible copied scene messages stayed in history, but the hidden origin/scene continuity that clone/convert appears designed to preserve was unavailable to the model. ## Likely Owner `src/engine/modes/roleplay/scene/scene-service.ts` Likely paths to inspect: - `forkRoleplayScene(...)` - `forkMetadata(...)` - `buildForkContinuityMessage(...)` - hidden-from-AI semantics used by prompt assembly
bsakaguchi 2026-10-20 17:33:06 +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#765
No description provided.