[PR #6188] [MERGED] fix: assigned scene, tracker, and Experience startup issues #7082

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6188
Author: @SpicyMarinara
Created: 9/14/2026
Status: ✅ Merged
Merged: 9/14/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/assigned-sweep-6180-6186


📝 Commits (5)

  • 6d9e787 docs: start assigned issue sweep for scene controls
  • 1645e9e fix: prepare Experience startups and apply assigned scene and tracker fixes
  • 16458b3 test: verify prepared startup and incremental tracker routes
  • 985f6f7 fix: preserve tracker identities and locks across incremental updates
  • cbaeda9 fix: settle scene choice dialogs safely and lock pending selections

📊 Changes

24 files changed (+1550 additions, -73 deletions)

View changed files

📝 CHANGELOG.md (+5 -0)
📝 docs/development/optional-agent-packages.md (+35 -0)
📝 e2e/chat-sweep.e2e.ts (+109 -0)
➕ e2e/game-experience-startup.e2e.ts (+212 -0)
📝 e2e/scene-tts-preferences.e2e.ts (+215 -1)
📝 packages/client/src/components/chat/SceneBanner.tsx (+8 -4)
📝 packages/client/src/components/game/GameSurface.tsx (+99 -11)
📝 packages/client/src/components/layout/ModalRenderer.tsx (+13 -0)
📝 packages/client/src/components/presets/ChoiceSelectionModal.tsx (+4 -2)
📝 packages/client/src/hooks/use-generate.ts (+3 -1)
📝 packages/client/src/lib/scene-generation.ts (+33 -0)
📝 packages/client/src/localization/locales/en.json (+2 -0)
📝 packages/server/src/routes/generate.routes.ts (+38 -10)
📝 packages/server/src/routes/generate/generate-route-utils.ts (+73 -6)
📝 packages/server/src/routes/generate/retry-agents-route.ts (+42 -10)
📝 packages/server/src/services/agents/agent-executor.ts (+8 -0)
📝 packages/shared/src/index.ts (+1 -0)
📝 packages/shared/src/schemas/capability-package.schema.ts (+21 -1)
📝 packages/shared/src/utils/tracker-field-locks.ts (+26 -12)
➕ packages/shared/src/utils/tracker-updates.ts (+83 -0)

...and 4 more files

📄 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

Closes #6180
Closes #6184
Closes #6185
Closes #6186

Why this change

Experience games could narrate before their world existed, scene creation skipped preset variables, tracker updates required whole lists, and Discard/Convert were difficult to read over scene text.

What changed

  • Experiences can opt into preparing before Start Game. The existing opening-generation path waits for package readiness and receives compact starting-world context. Failures remain retryable; stale callbacks cannot unlock another chat or package attempt. Classic and unflagged games retain their flow.
  • Scenes reuse the Roleplay preset-variable dialog and wait for confirmed choices to save before activation.
  • Trackers accept explicit per-list updates/removed values through existing persistence and field-lock handling. Legacy arrays retain their existing behavior. Omitted rows/properties stay unchanged in incremental mode.
  • Scene controls reuse existing button surfaces and Chroma text color.

Package-owned Pixelforge behavior and tracker prompts are in Marinara-Agents #849. Merge Engine first. The tracker prompts retain full-output fallback for older hosts.

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

Automated local validation: pnpm check, pnpm regression:prompt, pnpm version:check, capability lifecycle regression, and 21 focused browser cases passed across desktop Chromium, mobile Chromium, and mobile WebKit. A local provider/real-route fixture covers batched tracker execution, retry, persistence, SSE/client merging, locks, removals, and legacy arrays. Final review fixes passed the focused prompt and real-route regressions; the complete Node suite passed 268/268 with TMPDIR=/private/tmp on macOS (the default temporary directory exceeds the launcher socket path limit and has a symlink mismatch in an existing path assertion).

Manual verification notes

Synthetic browser screenshots were inspected. The browser checks exercise preset save failure/retry, disabled inputs during saves, global dismissal/replacement cleanup, and stale-callback protection, theme contrast and confirmations, package load failure/retry, preparation blocking, stale callbacks, opening context, remount/reload, and Classic fallback. A behavioral negative control reproduces premature Start when the new preparation declaration is disabled.

Manually verify a real Pixelforge world with a live model after updating the companion package, and check generated tracker updates in a personal chat. No physical-phone, live-model, or local Docker validation is claimed. The final hosted matrix passed, including the earlier WebKit Stop/partial-save case. One unrelated native-dice screenshot capture timed out after its behavior assertions passed; its exact local run and the targeted hosted shard rerun passed unchanged. Final pnpm check and CodeRabbit review also passed.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) 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)

Capability API 1.17 and startup contract documented; application version remains 2.4.5. Translation follow-up: #6189. Changelog covers all four issues.

UI evidence (if applicable)

Scene controls, preset variables, and Experience startup screenshots. Synthetic fixture content only.


🔄 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/6188 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 9/14/2026 **Status:** ✅ Merged **Merged:** 9/14/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/assigned-sweep-6180-6186` --- ### 📝 Commits (5) - [`6d9e787`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6d9e787486b495e5051dd187c415d95d82cfb5a0) docs: start assigned issue sweep for scene controls - [`1645e9e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1645e9e333528aec769dcbd22d8e710a5187ee7d) fix: prepare Experience startups and apply assigned scene and tracker fixes - [`16458b3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/16458b3e08c28fb1fb7c1b38973ed7f9b31b05d8) test: verify prepared startup and incremental tracker routes - [`985f6f7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/985f6f7eca0786af5648bd08a878001dd867194c) fix: preserve tracker identities and locks across incremental updates - [`cbaeda9`](https://github.com/Pasta-Devs/Marinara-Engine/commit/cbaeda9fc762f1f3c5d2502b358c48bc11e09684) fix: settle scene choice dialogs safely and lock pending selections ### 📊 Changes **24 files changed** (+1550 additions, -73 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+5 -0) 📝 `docs/development/optional-agent-packages.md` (+35 -0) 📝 `e2e/chat-sweep.e2e.ts` (+109 -0) ➕ `e2e/game-experience-startup.e2e.ts` (+212 -0) 📝 `e2e/scene-tts-preferences.e2e.ts` (+215 -1) 📝 `packages/client/src/components/chat/SceneBanner.tsx` (+8 -4) 📝 `packages/client/src/components/game/GameSurface.tsx` (+99 -11) 📝 `packages/client/src/components/layout/ModalRenderer.tsx` (+13 -0) 📝 `packages/client/src/components/presets/ChoiceSelectionModal.tsx` (+4 -2) 📝 `packages/client/src/hooks/use-generate.ts` (+3 -1) 📝 `packages/client/src/lib/scene-generation.ts` (+33 -0) 📝 `packages/client/src/localization/locales/en.json` (+2 -0) 📝 `packages/server/src/routes/generate.routes.ts` (+38 -10) 📝 `packages/server/src/routes/generate/generate-route-utils.ts` (+73 -6) 📝 `packages/server/src/routes/generate/retry-agents-route.ts` (+42 -10) 📝 `packages/server/src/services/agents/agent-executor.ts` (+8 -0) 📝 `packages/shared/src/index.ts` (+1 -0) 📝 `packages/shared/src/schemas/capability-package.schema.ts` (+21 -1) 📝 `packages/shared/src/utils/tracker-field-locks.ts` (+26 -12) ➕ `packages/shared/src/utils/tracker-updates.ts` (+83 -0) _...and 4 more files_ </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`. ## Linked issue Closes #6180 Closes #6184 Closes #6185 Closes #6186 ## Why this change Experience games could narrate before their world existed, scene creation skipped preset variables, tracker updates required whole lists, and Discard/Convert were difficult to read over scene text. ## What changed - Experiences can opt into preparing before Start Game. The existing opening-generation path waits for package readiness and receives compact starting-world context. Failures remain retryable; stale callbacks cannot unlock another chat or package attempt. Classic and unflagged games retain their flow. - Scenes reuse the Roleplay preset-variable dialog and wait for confirmed choices to save before activation. - Trackers accept explicit per-list `updates`/`removed` values through existing persistence and field-lock handling. Legacy arrays retain their existing behavior. Omitted rows/properties stay unchanged in incremental mode. - Scene controls reuse existing button surfaces and Chroma text color. Package-owned Pixelforge behavior and tracker prompts are in [Marinara-Agents #849](https://github.com/Pasta-Devs/Marinara-Agents/pull/849). Merge Engine first. The tracker prompts retain full-output fallback for older hosts. ## 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` Automated local validation: `pnpm check`, `pnpm regression:prompt`, `pnpm version:check`, capability lifecycle regression, and 21 focused browser cases passed across desktop Chromium, mobile Chromium, and mobile WebKit. A local provider/real-route fixture covers batched tracker execution, retry, persistence, SSE/client merging, locks, removals, and legacy arrays. Final review fixes passed the focused prompt and real-route regressions; the complete Node suite passed 268/268 with `TMPDIR=/private/tmp` on macOS (the default temporary directory exceeds the launcher socket path limit and has a symlink mismatch in an existing path assertion). ### Manual verification notes Synthetic browser screenshots were inspected. The browser checks exercise preset save failure/retry, disabled inputs during saves, global dismissal/replacement cleanup, and stale-callback protection, theme contrast and confirmations, package load failure/retry, preparation blocking, stale callbacks, opening context, remount/reload, and Classic fallback. A behavioral negative control reproduces premature Start when the new preparation declaration is disabled. Manually verify a real Pixelforge world with a live model after updating the companion package, and check generated tracker updates in a personal chat. No physical-phone, live-model, or local Docker validation is claimed. The final hosted matrix passed, including the earlier WebKit Stop/partial-save case. One unrelated native-dice screenshot capture timed out after its behavior assertions passed; its exact local run and the targeted hosted shard rerun passed unchanged. Final pnpm check and CodeRabbit review also passed. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) 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) Capability API 1.17 and startup contract documented; application version remains 2.4.5. Translation follow-up: #6189. Changelog covers all four issues. ## UI evidence (if applicable) [Scene controls, preset variables, and Experience startup screenshots](https://gist.github.com/SpicyMarinara/150450b057be6216d021097063a36c59). Synthetic fixture content only. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:16:22 +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#7082
No description provided.