mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #4372] [Issue]: Updated capability client keeps the previous custom-element UI until page refresh #2373
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#2373
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @thetopham on GitHub (Jul 31, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4372
Originally assigned to: @thetopham on GitHub.
Summary
Updating an installed capability package that contributes client UI can leave an already-open Marinara browser tab running the previous custom-element implementation. The server and installed manifest report the new package version, but newly added UI remains unavailable until the user performs a full page refresh.
This was observed with World Maps 1.2.3 after the shared-world Game Setup integration landed in Pasta-Devs/Marinara-Engine#4329 and Pasta-Devs/Marinara-Agents#149: Game Setup listed both shared worlds and templates, but shared-world cards still exposed the older non-setup actions while templates could be selected.
Environment
e1322b0ff1a0e7376ff6da77adb475bf6bdf42db9238108e0e69c4b37be4a6c97552e6bab713Evidence
/api/capability-packages/hierarchical-maps/client?v=1.2.3response have the same SHA-256.supportedSelectionKinds,Use shared world, and thesetup-applyview.useCapabilityClientModules()keys dynamic imports by package version, but the package module registers its custom element only whencustomElements.get(tag)is absent.Reproduction
Expected behavior
When a ready client-capability version changes while an older constructor is already registered, Marinara should complete the update by refreshing the web shell (or clearly require and enforce a refresh) instead of silently reporting the new module as ready while rendering the old UI.
Scope
This is an Engine capability-client lifecycle bug, not a World Maps source/artifact omission. A hard page refresh is the immediate workaround.
@thetopham commented on GitHub (Jul 31, 2026):
I’m taking this on in
fix/capability-client-refresh-4372from currentorigin/staging. The fix preserves the version of the client code that is actually registered for the page lifetime, blocks stale custom-element UI when a newer ready package is detected, and presents an explicit localized Refresh now state instead of claiming the new module is ready. I’ll open the draft PR as soon as the first focused commit is pushed.