Repository navigation
fix(models): hide revoked models from the live service pane - #1290
Merged
vastsa merged 2 commits intoOct 2, 2026
Merged
Conversation
A live refresh could reinsert saved bindings into the service pane. Catalog enrichment also erased their configured-only origin, making a retired known model look like part of the endpoint answer. Preserve the origin while enriching metadata and show only served rows in the live service pane. Keep selected bindings, overrides and offline fallbacks editable without silently deleting user configuration.
Owner
|
我记得前两天好像调整过这个,以新获取的+用户自定义的为准,请问一下现在还是有这个问题嘛 |
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.
刷新模型列表时,设置页会把已保存的模型绑定重新合并进左侧「该服务的模型」。如果被上游撤销的 ID 仍能匹配内置目录,目录补全还会覆盖它的用户配置来源,导致刷新后该模型继续显示。
本次保留模型的真实来源,让实时服务列表仅展示服务返回的模型;右侧已选绑定、别名、自定义额度及离线回退仍保留,刷新不会删除用户配置。
这是对 #1277 未覆盖的设置页面合并路径的补充,两者可独立合入。已使用 #1277 的接口返回改动验证本次回归测试通过;未修改原作者分支。
Fixes #1257
验证:
claude-sonnet-4-5并新增模型后,左侧仍显示撤销项;修复后通过真实 discovery IPC + 设置组件渲染回归。9e1ea906eb52c38c36ba7509afe072a4da843bbd;基于 main:22dfb87a84056127fad07617e8d06974f927bebc。验证环境复用了本机工具链、依赖包缓存及 Electron。现有依赖链接无法满足 pnpm 的工作区绑定要求,因此从本机缓存按锁文件离线恢复;现有宿主二进制版本过旧,因此复用现有 Cargo target 编译当前 main 的宿主后执行隔离测试。没有调用真实模型服务或使用用户桌面数据。