mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6328] [Feature]: Make name aliases readable wherever character names are resolved #3532
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#3532
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 @ylli-selmani on GitHub (Sep 18, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6328
Originally assigned to: @SpicyMarinara on GitHub.
Disclaimer: I had Mari write this up, but the idea is simply to read character cards' extension.NameAliases, which are already exported, just not... read on the server side.
What problem does this solve?
Ever since a previous PR of mine (which i like a lot. colored named are awesome), characters can have name aliases (
extensions.nameAliases, editable in the appearance/colors tab). They already travel with the card on export and import, and on the client they already have one consumer: inline name coloring.Nothing else can see them. Anything that needs to take a loose name string and work out which character card it refers to can only match the card's exact
name. In practice, models and users write nicknames, shorthand, or a different spelling ("Logan" for "Wolverine"), that match fails, and the consumer falls back to a bare, unreliable string. Aliases are exactly the human-maintained vocabulary that would fix this, and they are already sitting in the card, unread.Proposed solution
Make aliases available wherever character names are already resolved on the server side, so a consumer can match an incoming name string against a card's name and its aliases and get back a stable character id.
Today the existing id to name resolver (
resolveCharacterNameMap) reads a card'snameand nothing else. Rather than change its return shape (other callers want a plain name), add a sibling resolver beside it that returns the card'snametogether with itsnameAliases, keyed by the same character id, and let the existing function become a thin projection of it. One card parser, no second source of truth, and every existing call site keeps working byte for byte.Rules that should match the existing name behavior:
getCharacterById(id)row, so an alias cannot drift to a different id and there is no separate alias table to keep in sync.Alternatives considered
Additional context
Purely additive: no new storage, no new card field, no UI change. Aliases are already authored, already persisted, and already imported/exported with the card. This is only about giving them a read path outside the client.
Other possible uses beyond mine: scanning recent messages for names or nicknames and resolving them to character ids (for trackers, presence detection, or speaker attribution), and generally letting any feature key off "who is this text about" without hard-coding spellings.
One future feature of mine (an persistent item dossier to give items actual json entries WITH owners and fetched ownerIDs (either character card id or persona ID), still in development) would use this as its nickname tier, but that is my own work and not part of this request. I am asking only for the read path, not for anyone to build something on top of it.
Sketch of the shape (names are illustrative, maintainers may restructure):
A consumer then matches in tiers, which is where the alias fallback actually lives:
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Sep 18, 2026):
@SpicyMarinara is handling this in the current issue sweep: #6335. Implementation and regression proof are in progress.
@SpicyMarinara commented on GitHub (Sep 18, 2026):
Resolved in #6335, merged into
staging.Added a reusable character identity resolver that reads canonical names and sanitized aliases from the same card data. The existing name-only resolver uses that parser too. It reads the caller's supplied chat members, including disabled members, without scanning unrelated characters.
Regression proof covers imported JSON and object cards, malformed aliases, chat scope and name-only compatibility. This supplies the requested read path; it does not add downstream alias-matching behavior.