[PR #1623] [MERGED] Fix scene fork continuity visibility #5155

Closed
opened 2026-10-22 04:13:47 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1623
Author: @Promansis
Created: 5/30/2026
Status: ✅ Merged
Merged: 5/30/2026
Merged by: @Promansis

Base: refactor ← Head: fix/1517-scene-fork-continuity


📝 Commits (1)

  • 070d20c Fix scene fork continuity visibility

📊 Changes

2 files changed (+80 additions, -1 deletions)

View changed files

📝 src/engine/modes/roleplay/scene/scene-service.test.ts (+79 -0)
📝 src/engine/modes/roleplay/scene/scene-service.ts (+1 -1)

📄 Description

Linked issue

Closes #1517

Why this change

  • Scene clone/convert created a continuity message, but marked it hidden from AI, so future generation prompts dropped the origin/scene context that the fork was meant to preserve.

What changed

  • Stores fork continuity as hiddenFromUser instead of hiddenFromAi, keeping it out of the visible transcript while allowing prompt assembly to include it.
  • Adds focused engine tests for the prompt-visible continuity shape and the disabled carryover negative control.

Refactor impact

Primary owner:

roleplay mode engine scene service

Impact areas reviewed:

  • forkRoleplayScene(...)
  • fork continuity message metadata
  • prompt hidden-from-AI semantics
  • Roleplay surface hiddenFromUser transcript filtering

Boundary notes:

  • Engine-only behavior change; no React imports, shared API, Rust, or remote-runtime boundaries changed.
  • The existing UI-hidden context contract is used instead of adding prompt-assembly exceptions or compatibility branches.

Pressure points touched:

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

Validation

  • pnpm check passes locally
  • pnpm typecheck passes locally
  • pnpm build passes locally
  • pnpm check:architecture passes locally
  • pnpm check:docs passes locally
  • cargo check --manifest-path src-tauri/Cargo.toml --workspace passes locally
  • Rust clippy/tests were run for Rust behavior changes
  • Browser or Tauri app manual verification completed
  • Playwright, screenshot, or recording evidence added for UI changes
  • Remote runtime smoke checked when relevant

Manual verification notes

  • Agent-ran checks:
  • pnpm exec vitest run src/engine/modes/roleplay/scene/scene-service.test.ts passed.
  • pnpm typecheck passed.
  • pnpm check:architecture passed.
  • Manual generation prompt snapshot repro was not run.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

Docs/release notes: not needed; this is a narrow bug fix to existing scene fork continuity behavior.

UI evidence

Not applicable; engine continuity metadata behavior validated by tests above.


🔄 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/1623 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 5/30/2026 **Status:** ✅ Merged **Merged:** 5/30/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `refactor` ← **Head:** `fix/1517-scene-fork-continuity` --- ### 📝 Commits (1) - [`070d20c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/070d20c8a56baf1f5f163ac0692f6877fa900a4c) Fix scene fork continuity visibility ### 📊 Changes **2 files changed** (+80 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/engine/modes/roleplay/scene/scene-service.test.ts` (+79 -0) 📝 `src/engine/modes/roleplay/scene/scene-service.ts` (+1 -1) </details> ### 📄 Description ## Linked issue Closes #1517 ## Why this change - Scene clone/convert created a continuity message, but marked it hidden from AI, so future generation prompts dropped the origin/scene context that the fork was meant to preserve. ## What changed - Stores fork continuity as `hiddenFromUser` instead of `hiddenFromAi`, keeping it out of the visible transcript while allowing prompt assembly to include it. - Adds focused engine tests for the prompt-visible continuity shape and the disabled carryover negative control. ## Refactor impact Primary owner: roleplay mode engine scene service Impact areas reviewed: - `forkRoleplayScene(...)` - fork continuity message metadata - prompt hidden-from-AI semantics - Roleplay surface `hiddenFromUser` transcript filtering Boundary notes: - Engine-only behavior change; no React imports, shared API, Rust, or remote-runtime boundaries changed. - The existing UI-hidden context contract is used instead of adding prompt-assembly exceptions or compatibility branches. Pressure points touched: - `src/engine/modes/roleplay/scene/scene-service.ts` - `src/engine/modes/roleplay/scene/scene-service.test.ts` ## Validation - [ ] `pnpm check` passes locally - [ ] `pnpm typecheck` passes locally - [ ] `pnpm build` passes locally - [ ] `pnpm check:architecture` passes locally - [ ] `pnpm check:docs` passes locally - [ ] `cargo check --manifest-path src-tauri/Cargo.toml --workspace` passes locally - [ ] Rust clippy/tests were run for Rust behavior changes - [ ] Browser or Tauri app manual verification completed - [ ] Playwright, screenshot, or recording evidence added for UI changes - [ ] Remote runtime smoke checked when relevant ### Manual verification notes - Agent-ran checks: - `pnpm exec vitest run src/engine/modes/roleplay/scene/scene-service.test.ts` passed. - `pnpm typecheck` passed. - `pnpm check:architecture` passed. - Manual generation prompt snapshot repro was not run. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [ ] Confirmed this PR does not restore old staging/package-workspace/release claims Docs/release notes: not needed; this is a narrow bug fix to existing scene fork continuity behavior. ## UI evidence Not applicable; engine continuity metadata behavior validated by tests above. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:13:47 +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#5155
No description provided.