fix(desktop): 切模型的系统行带出寻址后缀 - #975
Merged
xiaomakuaiz merged 1 commit intoAug 2, 2026
Merged
Conversation
model_update 帧携带的是模型落盘原始名,`@monkeycode#<配置id>` 这段 来源后缀只是引擎寻址键的一部分(见 settingsConfig.syncedName),展示面 必须剥掉。reduce 里这条系统行只剥了会员档位前缀(stripTierPrefix), 于是会话里显示成「模型已切换为 深度求索@monkeycode#cfg-9」;菜单触发器 走 modelMenu.modelDisplay 剥了两层,所以只有这一处漏。 补上 stripSourceSuffix,顺序与 modelDisplay 一致(先剥后缀再剥档位 前缀)。状态里的 model 仍存原始名——它是按 name 回查模型/think 档的键。
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.
model_update 帧携带的是模型落盘原始名,
@monkeycode#<配置id>这段来源后缀只是引擎寻址键的一部分(见 settingsConfig.syncedName),展示面
必须剥掉。reduce 里这条系统行只剥了会员档位前缀(stripTierPrefix),
于是会话里显示成「模型已切换为 深度求索@monkeycode#cfg-9」;菜单触发器
走 modelMenu.modelDisplay 剥了两层,所以只有这一处漏。
补上 stripSourceSuffix,顺序与 modelDisplay 一致(先剥后缀再剥档位
前缀)。状态里的 model 仍存原始名——它是按 name 回查模型/think 档的键。