[PR #227] [CLOSED] fix(maps): refresh published shared worlds #868

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/227
Author: @thetopham
Created: 8/3/2026
Status: ❌ Closed

Base: staging ← Head: fix/219-shared-world-refresh


📝 Commits (1)

  • e195e69 fix(maps): refresh linked shared worlds

📊 Changes

10 files changed (+232 additions, -66 deletions)

View changed files

📝 artifacts/hierarchical-maps-1.3.0.zip (+0 -0)
📝 catalog/catalog.json (+5 -5)
📝 catalog/v2/catalog.json (+5 -5)
📝 catalog/v3/catalog.json (+5 -5)
📝 packages/hierarchical-maps/client.js (+45 -45)
📝 packages/hierarchical-maps/manifest.json (+2 -2)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/SpatialMapWorkspace.tsx (+47 -2)
➕ packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/spatial-workspace-refresh.ts (+22 -0)
📝 packages/hierarchical-maps/src/engine/packages/client/src/hooks/use-spatial-context.ts (+5 -2)
➕ tests/shared-world-refresh.regression.ts (+96 -0)

📄 Description

Pull request

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #219

Why this change

  • Publishing a shared World Map updated the canonical document, but inactive linked-chat queries were only marked stale and an editor initialized from stale cache ignored the later response.

What changed

  • Await refetches for active and inactive cached spatial-context queries after publish.
  • Rehydrate an initialized editor when a newer server definition or hierarchy profile arrives and the editor has no unsaved changes.
  • Preserve unsaved editor work and server-persisted linked-chat drafts; refreshed draft status can therefore expose the existing canonical conflict without overwriting the draft.
  • Clarify before and after publish which chats refresh in the current window, how unpublished drafts behave, and when other tabs/windows must be reopened.
  • Rebuilt the hierarchical-maps 1.3.0 client payload, manifest hashes, ZIP artifact, and all catalog lanes.
  • Added a focused regression for cache refetch policy, clean-editor rehydration, dirty/draft preservation, and publish messaging.

Package and security impact

  • Affected package IDs: hierarchical-maps
  • Engine compatibility impact: none; existing spatial-context and React Query APIs are used.
  • New or changed permissions/entrypoints: none.
  • Restart, storage, update, or uninstall impact: no schema/storage changes; only client cache/editor synchronization changes.

Validation

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

Automated verification notes

  • pnpm --filter @marinara-engine/server exec tsx /tmp/marinara-agents-219/tests/shared-world-refresh.regression.ts
  • node scripts/test-catalog-lanes.mjs
  • node scripts/validate-catalog.mjs
  • git diff --check
  • unzip -t artifacts/hierarchical-maps-1.3.0.zip
  • Generated client bundle contains the all-cache refetch policy, safe editor refresh, and revised publish copy.
  • Existing server lifecycle coverage already verifies clean linked chats resolve the published canonical definition and unpublished drafts become conflicts. The broader lifecycle suite could not start against the current Engine checkout because its existing @marinara-engine/shared build lacks the already-referenced noodleAutoPostingIntensitySchema export; this is outside the changed World Maps paths.

Manual verification notes

  • Live multi-chat browser verification is pending. The focused regression does not claim an already-open real browser tab or the reporter's six-chat setup.

Documentation impact

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

UI evidence (if applicable)

  • Pending live installation and review.

🔄 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-Agents/pull/227 **Author:** [@thetopham](https://github.com/thetopham) **Created:** 8/3/2026 **Status:** ❌ Closed **Base:** `staging` ← **Head:** `fix/219-shared-world-refresh` --- ### 📝 Commits (1) - [`e195e69`](https://github.com/Pasta-Devs/Marinara-Agents/commit/e195e691947ee120458c21cac189aeffd828cbda) fix(maps): refresh linked shared worlds ### 📊 Changes **10 files changed** (+232 additions, -66 deletions) <details> <summary>View changed files</summary> 📝 `artifacts/hierarchical-maps-1.3.0.zip` (+0 -0) 📝 `catalog/catalog.json` (+5 -5) 📝 `catalog/v2/catalog.json` (+5 -5) 📝 `catalog/v3/catalog.json` (+5 -5) 📝 `packages/hierarchical-maps/client.js` (+45 -45) 📝 `packages/hierarchical-maps/manifest.json` (+2 -2) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/SpatialMapWorkspace.tsx` (+47 -2) ➕ `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/spatial-workspace-refresh.ts` (+22 -0) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/hooks/use-spatial-context.ts` (+5 -2) ➕ `tests/shared-world-refresh.regression.ts` (+96 -0) </details> ### 📄 Description # Pull request > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #219 ## Why this change - Publishing a shared World Map updated the canonical document, but inactive linked-chat queries were only marked stale and an editor initialized from stale cache ignored the later response. ## What changed - Await refetches for active and inactive cached spatial-context queries after publish. - Rehydrate an initialized editor when a newer server definition or hierarchy profile arrives and the editor has no unsaved changes. - Preserve unsaved editor work and server-persisted linked-chat drafts; refreshed draft status can therefore expose the existing canonical conflict without overwriting the draft. - Clarify before and after publish which chats refresh in the current window, how unpublished drafts behave, and when other tabs/windows must be reopened. - Rebuilt the `hierarchical-maps` 1.3.0 client payload, manifest hashes, ZIP artifact, and all catalog lanes. - Added a focused regression for cache refetch policy, clean-editor rehydration, dirty/draft preservation, and publish messaging. ## Package and security impact - Affected package IDs: `hierarchical-maps` - Engine compatibility impact: none; existing spatial-context and React Query APIs are used. - New or changed permissions/entrypoints: none. - Restart, storage, update, or uninstall impact: no schema/storage changes; only client cache/editor synchronization changes. ## Validation - [ ] `node scripts/validate-catalog.mjs` passes locally - [ ] `git diff --check` passes locally - [ ] Rebuilt every affected manifest, payload, artifact, and catalog entry - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [ ] Read and followed `CONTRIBUTING.md` ### Automated verification notes - `pnpm --filter @marinara-engine/server exec tsx /tmp/marinara-agents-219/tests/shared-world-refresh.regression.ts` - `node scripts/test-catalog-lanes.mjs` - `node scripts/validate-catalog.mjs` - `git diff --check` - `unzip -t artifacts/hierarchical-maps-1.3.0.zip` - Generated client bundle contains the all-cache refetch policy, safe editor refresh, and revised publish copy. - Existing server lifecycle coverage already verifies clean linked chats resolve the published canonical definition and unpublished drafts become conflicts. The broader lifecycle suite could not start against the current Engine checkout because its existing `@marinara-engine/shared` build lacks the already-referenced `noodleAutoPostingIntensitySchema` export; this is outside the changed World Maps paths. ### Manual verification notes - Live multi-chat browser verification is pending. The focused regression does not claim an already-open real browser tab or the reporter's six-chat setup. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) - Pending live installation and review. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-20 17:31: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-Agents#868
No description provided.