Repository navigation
Conversation
yyyr-p
marked this pull request as draft
October 11, 2026 17:04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Copying a model alias pre-filled the ID from the localized
dashboard.modelAliases.copy.nameSuffixstring, so the same action producedsource copyin English andsource 副本in Chinese.An alias name is the public model id clients send, so a copied alias was announced under an ID containing a space, or CJK characters, and the ID a copy received depended on the operator's dashboard language. Names are unique, so copying the same alias twice also always collided with the
Alias <name> already exists409.The copy dialog now derives its ID from
copiedAliasName, which appends a locale-independent-copysuffix and walks to the first free numeric suffix —source-copy,source-copy-2,source-copy-3— when an ID is already taken. Thedashboard.modelAliases.copy.nameSuffixkey loses its last reader and is dropped from both locales.Test Plan:
apps/web/__tests__/components/model-alias: 20 tests, covering the new dialog cases that assert one ASCII ID under bothenandzh-Hansand the first-free-suffix choice.pnpm run verifyon this branch: 601 test files / 6544 tests, installer suite, repository checks and the web build all pass.