mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1993] [Issue]: Authorized remote managed asset blob URLs need consistent invalidation #977
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#977
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 @Promansis on GitHub (Jun 3, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1993
Originally assigned to: @Promansis on GitHub.
Summary
Authorized remote managed assets are fetched into blob URLs and cached in memory, but invalidation appears broad and uneven across asset kinds. This can leave remote runtime sessions with stale images or retained object URLs after gallery, background, lorebook, avatar, or sprite mutations.
Expected behavior
Remote managed asset object URLs should be invalidated consistently for every mutation that can change the served bytes, and cache keys should include enough freshness information to avoid stale image delivery.
Actual behavior
Static audit found:
src/shared/api/local-file-api.tscreates object URLs for authorized remote managed assets and caches them by base URL, authorization, and asset URL.invalidateRemoteManagedAssetObjectUrlsexists and can revoke cached object URLs.src/shared/api/assets-api.ts.This issue does not claim a measured memory leak or stale image repro yet; it tracks the cache/freshness risk found by source inspection.
Steps to reproduce
Impact area
Environment
refactorLogs, screenshots, or video
No browser/network proof yet. Static source evidence:
src/shared/api/local-file-api.tssrc/shared/api/local-file-api.tssrc/shared/api/assets-api.tsRegression notes
Not confirmed as a regression. This is a remote-runtime parity and freshness risk found during image delivery audit.
Additional context
Possible fix directions:
Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: