mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #918] [MERGED] Fix NPC avatar matching for professor names #4837
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#4837
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/918
Author: @cha1latte
Created: 5/16/2026
Status: ✅ Merged
Merged: 5/16/2026
Merged by: @cha1latte
Base:
staging← Head:fix/prof-oak-sprite📝 Commits (1)
a910293Fix NPC avatar matching for professor names📊 Changes
4 files changed (+91 additions, -10 deletions)
View changed files
📝
packages/server/src/routes/chats.routes.ts(+23 -4)📝
packages/server/src/routes/game.routes.ts(+26 -5)📝
packages/server/src/routes/generate.routes.ts(+6 -1)➕
packages/server/src/services/game/npc-avatar-utils.ts(+36 -0)📄 Description
Linked issue
No linked GitHub issue. Bug was reported directly in Codex; an issue should be opened before non-draft submission if the team wants one.
Why this change
professoras a fuzzy avatar alias.What changed
professoras a title/honorific for NPC avatar aliases, soProfessor Marican still matchMariwithout matching every professor NPC.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
http://100.64.240.39:7860/api/chats: chatKmSLNSsePLyUwHOuwZUb7hadgameNpcs[0].nameasProfessor OakwithavatarUrlset to/sprites/mari/Mari_profile.png.pnpm --dir packages/server exec tsx ../../scratch/prof-oak-avatar-repro.ts; the focused repro showed Oak no longer resolves from Mari-only aliases, exact Oak/title aliases still work, and stale Mari avatars are stripped from Professor Oak while preserved for Professor Mari.pnpm check; it passed.Docs and release impact
No docs, release metadata, schema, or dependency changes.
UI evidence (if applicable)
Original UI evidence was supplied in the bug report screenshot. The changed server path was verified with a focused repro script; a post-deploy visual check on the Pi Docker app is still recommended.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.