Repository navigation
feat(composer): 新聊天沿用上次模型并优先显示最近三项 - #1412
Merged
Merged
Conversation
Keep the latest usable model selection across new chats and restarts, while preserving each existing conversation binding. Expose three recent provider/model pairs directly in the composer menu. Remove the fixed chat-default settings controls without changing legacy settings used by scheduled jobs or the independent image model selection. Cover persistence, unavailable bindings and model menu interactions.
Only accepted messages update model history, so opening an old chat or browsing model choices cannot change the next chat's inherited model. Keep search and recent choices together, with other models expanded inline.
Recent entries missed the shared model group styles and rendered larger than the expanded catalog. Reuse that group and check computed typography in the Electron interaction test.
vastsa
reviewed
Oct 4, 2026
vastsa
reviewed
Oct 4, 2026
Pointer hover must not leave a model marked as the keyboard target after moving to the inline disclosure. Clear the keyboard cursor on pointer movement and when search loses focus, preserving native hover feedback.
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.
新聊天沿用上次实际发送消息时使用的可用模型,已有聊天保留自己的模型。打开旧聊天、只切换模型或调整推理等级不会更新记录;消息提交被接受后才更新,提交失败不更新。
模型菜单顶部直接搜索全部可用模型,下面显示最近使用的 3 项,其他模型按服务商原地展开。最近项不会在展开列表里重复出现,没有历史时直接展示全部模型。设置页的聊天默认模型选择器和“设为默认”入口移除,图片模型设置保持独立。
记录保存在本机,重启后恢复,不参与跨设备同步。失效模型会被跳过;首次使用先沿用有效的兼容默认配置,否则选第一个可用聊天模型。兼容默认字段仍供定时任务等消费者使用,无数据库迁移。
验证:
4a0c4991500c包含主线abfeeb21852e,桌面 3,515 项测试、i18n 29 项测试、类型检查、生产构建及静态检查通过。4c9efb3fd的 Electron 检查确认最近项与展开项字号、字重一致;修复前分别为 13px 和 12px,修复后均为 12px。50b0e9c46通过 32 项相关测试及 Electron 回归:鼠标移到其他模型、搜索失焦时清除旧键盘高亮,方向键选择仍可用。类型为
feat。仓库当前外部贡献范围限于fix/perf,此功能是否接受需由维护者决定。