mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1741] [MERGED] Fix remote avatar asset routing #5251
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#5251
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/1741
Author: @cha1latte
Created: 5/31/2026
Status: ✅ Merged
Merged: 5/31/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/issue-1713-remote-avatar-assets📝 Commits (1)
7d8f2b4Fix remote avatar asset routing📊 Changes
3 files changed (+178 additions, -8 deletions)
View changed files
📝
src-tauri/src/http_server.rs(+93 -6)➕
src/shared/api/local-file-api.test.tsx(+48 -0)📝
src/shared/api/local-file-api.ts(+37 -2)📄 Description
Linked issue
Closes #1713
Why this change
avatars/characters, while managed persona and NPC avatar uploads are stored underavatars/personasandavatars/npc.What changed
avatarFilePath./api/assets/avatar/<collection>/...to allowlisted avatar collections while keeping legacy/api/assets/avatar/<filename>mapped to character avatars.Refactor impact
Primary owner:
Remote runtime / Rust HTTP assets, with shared API URL construction.
Impact areas reviewed:
src/shared/api/local-file-api.tssrc-tauri/src/http_server.rssrc-tauri/src/commands/storage/avatars.rsBoundary notes:
Pressure points touched:
/api/assets/avatar/*pathHTTP asset routing.Validation
pnpm typecheck,pnpm build,pnpm check:architecture,pnpm check:docs, or fullpnpm checkwhen warranted)pnpm checkpasses locally before PR push/handoff, including the unused-code checkpnpm typecheckpasses locallypnpm buildpasses locallypnpm check:architecturepasses locallypnpm check:docspasses locallycargo check --manifest-path src-tauri/Cargo.toml --workspacepasses locallyManual verification notes
Codex machine verification:
cargo test --manifest-path src-tauri/Cargo.toml http_server::tests::avatar_asset_path_routes_known_avatar_collectionsfailed because collection-prefixed avatar paths were rejected.pnpm exec vitest run src/shared/api/local-file-api.test.tsfailed because a managed persona avatar path produced/api/assets/avatar/Current.pnginstead of/api/assets/avatar/personas/Current.png.cargo test --manifest-path src-tauri/Cargo.toml http_server::tests::avatar_asset_path_routes_known_avatar_collectionspassed.pnpm exec vitest run src/shared/api/local-file-api.test.tsxpassed.pnpm checkpassed after the final diff and rebase.node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.jsonpassed.Manual verification not performed:
Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdUI evidence
N/A - this is a backend/shared API asset-routing fix with no visible UI state as the claim.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.