mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1997] [MERGED] Fix remote managed asset invalidation #5382
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#5382
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1997
Author: @Promansis
Created: 6/3/2026
Status: ✅ Merged
Merged: 6/3/2026
Merged by: @Promansis
Base:
refactor← Head:issue-1993-remote-managed-asset-invalidation📝 Commits (2)
8c5effeFix remote managed asset invalidationd7c540bFix streamed import invalidation on generator close📊 Changes
11 files changed (+348 additions, -88 deletions)
View changed files
📝
src/shared/api/assets-api.ts(+16 -16)📝
src/shared/api/avatar-api.ts(+8 -4)📝
src/shared/api/character-api.ts(+17 -3)📝
src/shared/api/image-generation-api.ts(+26 -8)📝
src/shared/api/import-api.ts(+91 -13)📝
src/shared/api/local-file-api.ts(+81 -19)📝
src/shared/api/lorebook-command-api.ts(+5 -1)📝
src/shared/api/persona-api.ts(+5 -1)📝
src/shared/api/profile-api.ts(+26 -6)📝
src/shared/api/settings-assets-api.ts(+9 -3)📝
src/shared/api/storage-api.ts(+64 -14)📄 Description
Linked issue
Closes #1993
Why this change
/api/assets/...paths that the HTTP server can cache for mutable asset kinds.What changed
invalidateRemoteManagedAssetObjectUrlsAfterwrapper and applied it to asset-mutating shared API calls for avatars, backgrounds, galleries, sprites, game assets, lorebook images, imports, profile imports, and generic storage writes/deletes.Refactor impact
Primary owner:
shared API / remote runtime managed asset URL resolution
Impact areas reviewed:
Boundary notes:
src/shared/apiruntime wrappers and URL resolution.Pressure points touched:
src/shared/api/local-file-api.tsValidation
pnpm typecheck,pnpm build,pnpm check:architecture,pnpm check:docs, or fullpnpm checkwhen warranted)pnpm checkpasses before PR push/handoffManual verification notes
git diff --checkpassed.pnpm typecheckpassed.pnpm check:architecturepassed.v=query is preserved, and path invalidation leaves a neighboring path unchanged. The scratch test file was deleted before commit.pnpm checkpassed.Feature Discoverability
Check exactly one:
src/features/shell/discovery/because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.Reason:
Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdUI evidence
No visible UI layout change; no screenshots required.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.