[PR #4329] [MERGED] feat(game): link shared worlds during setup #6336

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4329
Author: @thetopham
Created: 7/31/2026
Status: ✅ Merged
Merged: 7/31/2026
Merged by: @thetopham

Base: staging ← Head: feature/4323-shared-world-game-setup


📝 Commits (8)

  • 655d7f9 feat: link shared worlds during Game setup
  • a519ba1 Merge branch 'staging' into feature/4323-shared-world-game-setup
  • d814625 Merge branch 'staging' into feature/4323-shared-world-game-setup
  • 1829118 fix(game): make shared-world setup retries recoverable
  • 6af1cc3 fix(game): ignore stale shared-world callbacks
  • ea70ba8 fix(game): clear shared-world setup on chat switch
  • 96aa7c3 fix(game): scope setup map plans by chat
  • 49c071f fix(game): close setup without a map plan

📊 Changes

4 files changed (+285 additions, -31 deletions)

View changed files

📝 packages/client/src/components/capabilities/CapabilityElement.tsx (+14 -2)
📝 packages/client/src/components/game/GameSetupWizard.tsx (+41 -10)
📝 packages/client/src/components/game/GameSurface.tsx (+218 -19)
📝 packages/client/src/localization/locales/en.json (+12 -0)

📄 Description

Why this change

Implements the Marinara Engine half of Pasta-Devs/Marinara-Engine#4323. Game setup could create a map from a World Maps template, but it could not select and link an existing account-owned shared world.

Companion World Maps change: Pasta-Devs/Marinara-Agents#149.

What changed

  • Allow capability setup views to return either a template or a shared-world selection.
  • Advertise shared-world setup support explicitly so older World Maps packages remain template-only.
  • Keep Game setup open while World Maps applies the selected shared world through a package-owned setup view.
  • Treat linking errors as recoverable and prevent the Game Start screen from appearing before linking completes.
  • Add localized status, summary, success, and error copy.

User impact

When a compatible World Maps package is installed, users can choose an existing shared world during Game setup. The selected world is linked before setup completes, while the world's canonical definition and artwork remain account-owned.

Validation

  • pnpm localization:check
  • pnpm lint
  • pnpm build
  • World Maps exact-artifact lifecycle regression against this Engine commit
  • pnpm check reaches the repository Impeccable preflight and stops because the context loader does not return valid JSON; the direct localization, lint, and build gates above pass.
  • Focused desktop Chromium Playwright test passed for shared-world selection, pre-Start linking, initial location, and canonical-record immutability.

Manual verification

  • Install the companion World Maps 1.2.3 artifact.
  • In Game setup, choose an existing shared world and verify its starting location is selected before the Start screen appears.
  • Verify a failed or stale selection remains recoverable in the setup wizard.
  • Verify an older World Maps package continues to offer template setup without a shared-world option.

Summary by CodeRabbit

New Features

  • Added shared-world selection and linking to the game setup wizard.
  • Map selection now supports both shared worlds and templates.
  • Existing game setups can be updated without repeating the full setup process.
  • Added progress, success, and error feedback for shared-world linking.
  • Added localized messages for shared-world selection and linking states.

Bug Fixes

  • Improved error reporting when capabilities fail to load or run.
  • Prevented outdated setup results from affecting inactive chats.

🔄 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/4329 **Author:** [@thetopham](https://github.com/thetopham) **Created:** 7/31/2026 **Status:** ✅ Merged **Merged:** 7/31/2026 **Merged by:** [@thetopham](https://github.com/thetopham) **Base:** `staging` ← **Head:** `feature/4323-shared-world-game-setup` --- ### 📝 Commits (8) - [`655d7f9`](https://github.com/Pasta-Devs/Marinara-Engine/commit/655d7f922bb7f06e3ab5391bf877d2b5be928aa6) feat: link shared worlds during Game setup - [`a519ba1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a519ba1ddf82a68caebf5db0c14310678cb8f7b7) Merge branch 'staging' into feature/4323-shared-world-game-setup - [`d814625`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d814625e0b7144d04ce2589115a0ca310e7755c6) Merge branch 'staging' into feature/4323-shared-world-game-setup - [`1829118`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1829118338afd2d1aac8d91dffa6f5c39be36ca1) fix(game): make shared-world setup retries recoverable - [`6af1cc3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6af1cc3a74369497415b84de4f4bda4ccf72fa6f) fix(game): ignore stale shared-world callbacks - [`ea70ba8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ea70ba89f950d26ec0042be9b5b5cacf7df70c73) fix(game): clear shared-world setup on chat switch - [`96aa7c3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/96aa7c3324d248bc98e50d9cecb4e094db62d61b) fix(game): scope setup map plans by chat - [`49c071f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/49c071f23e5c8ec6c71574e52c892723fd095fdd) fix(game): close setup without a map plan ### 📊 Changes **4 files changed** (+285 additions, -31 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/capabilities/CapabilityElement.tsx` (+14 -2) 📝 `packages/client/src/components/game/GameSetupWizard.tsx` (+41 -10) 📝 `packages/client/src/components/game/GameSurface.tsx` (+218 -19) 📝 `packages/client/src/localization/locales/en.json` (+12 -0) </details> ### 📄 Description ## Why this change Implements the Marinara Engine half of Pasta-Devs/Marinara-Engine#4323. Game setup could create a map from a World Maps template, but it could not select and link an existing account-owned shared world. Companion World Maps change: Pasta-Devs/Marinara-Agents#149. ## What changed - Allow capability setup views to return either a template or a shared-world selection. - Advertise shared-world setup support explicitly so older World Maps packages remain template-only. - Keep Game setup open while World Maps applies the selected shared world through a package-owned setup view. - Treat linking errors as recoverable and prevent the Game Start screen from appearing before linking completes. - Add localized status, summary, success, and error copy. ## User impact When a compatible World Maps package is installed, users can choose an existing shared world during Game setup. The selected world is linked before setup completes, while the world's canonical definition and artwork remain account-owned. ## Validation - `pnpm localization:check` - `pnpm lint` - `pnpm build` - World Maps exact-artifact lifecycle regression against this Engine commit - `pnpm check` reaches the repository Impeccable preflight and stops because the context loader does not return valid JSON; the direct localization, lint, and build gates above pass. - Focused desktop Chromium Playwright test passed for shared-world selection, pre-Start linking, initial location, and canonical-record immutability. ## Manual verification - [ ] Install the companion World Maps 1.2.3 artifact. - [ ] In Game setup, choose an existing shared world and verify its starting location is selected before the Start screen appears. - [ ] Verify a failed or stale selection remains recoverable in the setup wizard. - [ ] Verify an older World Maps package continues to offer template setup without a shared-world option. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## New Features * Added shared-world selection and linking to the game setup wizard. * Map selection now supports both shared worlds and templates. * Existing game setups can be updated without repeating the full setup process. * Added progress, success, and error feedback for shared-world linking. * Added localized messages for shared-world selection and linking states. ## Bug Fixes * Improved error reporting when capabilities fail to load or run. * Prevented outdated setup results from affecting inactive chats. <!-- 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-23 04:09:28 +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#6336
No description provided.