mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1044] [MERGED] Fix NPC portrait slugs for non-ASCII names #4895
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#4895
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/1044
Author: @cha1latte
Created: 5/20/2026
Status: ✅ Merged
Merged: 5/20/2026
Merged by: @cha1latte
Base:
staging← Head:fix/issue-1039-npc-safe-name📝 Commits (1)
2f06365Fix NPC portrait slugs for non-ASCII names📊 Changes
1 file changed (+6 additions, -1 deletions)
View changed files
📝
packages/server/src/services/game/game-asset-generation.ts(+6 -1)📄 Description
Linked issue
Closes #1039
Why this change
What changed
NFKDso simple accented names can fold to readable ASCII slugs.asset-<hash>fallback for non-empty names that still collapse to an empty slug.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm --filter @marinara-engine/server exec tsx ../../scratch/issue-1039-npc-safe-name-repro.ts:李雷returnednull, made0image backend requests, and saved no avatar.pnpm --filter @marinara-engine/server exec tsx ../../scratch/issue-1039-npc-safe-name-repro.ts --expect-fixed:李雷generated/api/avatars/npc/issue-1039-chat/asset-3a47328a.pngafter hitting the local fake ComfyUI backend.Élodiegeneratedelodie.png,Sir Robingeneratedsir-robin.png, and a whitespace-only name still returnednullwithout backend requests.pnpm check; it passed locally.Docs and release impact
Docs impact: no docs or release metadata changed.
UI evidence (if applicable)
N/A - backend/game asset slug generation only; no UI surface changed.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.