Repository navigation
fix(groups): 防止将默认候选自动保存为自定义模型列表 - #1993
Merged
Merged
Conversation
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.
新建或编辑分组时,如果自定义模型列表为空,表单会默认选中全部候选。即使自定义列表开关关闭,保存分组时仍会把这些模型写入数据库。新建分组的候选可能包含完整模型目录,导致分组详情过大,MCP 只能返回受保护文件链接。
本次修复让未保存的候选默认不勾选。管理员主动选择的模型及顺序会在刷新候选、关闭列表和重新打开表单后保留。已有数据不做自动清理,避免删除用户主动保存的选择。
补充了包含 12,000 个候选的回归测试、新建与编辑表单的提交测试,以及关闭列表后保留主动选择的测试,并更新模型目录文档。
验证结果:前端静态检查、类型检查、19 项工具测试和 219 个文件中的 1,860 项相关应用测试全部通过。