Skip to content

feat(overview): 在首页显示当前使用的模型 - #1160

Closed
leolulu wants to merge 3 commits into
Open-Less:betafrom
leolulu:feat/overview-current-models
Closed

leolulu wants to merge 3 commits into
Open-Less:betafrom
leolulu:feat/overview-current-models

Conversation

@leolulu

@leolulu leolulu commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

摘要

我在用 Beta 版时发现,首页看不到当前用的是哪个模型,语音识别和文字润色的模型都要点进设置才能确认。1.3 正式版原本就有对应的首页卡片,查看起来很方便,所以这次沿用这个展示方式,把当前使用的模型直接显示在首页。

下面是 v1.3.15 正式版的截图。这次参考的是顶部的服务卡片,其他区域保留 Beta 当前的布局。

v1.3.15 正式版首页

v1.3.15 正式版首页的服务卡片

修复 / 新增 / 改进

  • 沿用首页已有的卡片,在标题下面显示当前模型、所属服务和配置状态。普通模式分别显示语音识别模型和润色模型,多模态模式显示多模态模型(Omni)。
  • 卡片上的“管理服务”会打开已有设置,并定位到对应的语音识别、文本模型或多模态分类;未配置时保留提醒和“去配置”按钮。切换配置后会更新,读取失败时提示失败,不继续显示旧模型。
  • 改动限于首页展示、读取模型的小函数和对应测试,以及设置页的分类定位,共 6 个文件。分类定位只沿已有的设置打开流程传入分类。

兼容

  • 模型信息通过已有接口和本地模型设置读取,服务选择逻辑和凭据存储保持不变。
  • 没有新增依赖,也没有改后端、构建配置或首页的统计逻辑。PR 提交到 beta。

测试计划

  • 命令:pnpm run build,以及改动文件的 Prettier 检查;overviewServices、overviewSetup 和 ipc/providers 测试均通过。
  • 结果:浏览器检查确认桌面上两张卡片位于标题下方;普通 / 多模态、未配置、读取失败和设置入口都能正常显示或操作。
  • 证据路径:openless-all/app/src/lib/overviewServices.test.ts。
  • CI:当前提交 2068b2d 的 CI 已通过,7 项成功、0 项失败、0 项跳过(Windows、macOS、Android、Linux、Chromium + WebKit UI motion、macOS Rust 1.88 MSRV,以及变更范围检查)。查看本次 CI 日志

@leolulu leolulu changed the title feat(overview): 在首页显示当前服务与模型 feat(overview): 恢复首页服务卡片并显示当前模型 Oct 7, 2026
@leolulu leolulu changed the title feat(overview): 恢复首页服务卡片并显示当前模型 feat(overview): 在首页显示当前使用的模型 Oct 7, 2026
@HKLHaoBin

Copy link
Copy Markdown
Collaborator

可以给我截图看一下首页变成什么样子吗?

@H-Chris233 H-Chris233 added area:ui UI area area:ux UX area enhancement New feature or request needs-review Needs review P3 Low priority labels Oct 13, 2026
leolulu added a commit to leolulu/openless that referenced this pull request Oct 14, 2026
leolulu added a commit to leolulu/openless that referenced this pull request Oct 14, 2026
@leolulu

leolulu commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor Author

可以给我截图看一下首页变成什么样子吗?

@HKLHaoBin

openless-pr

截图是我在我的Windows电脑上跑的当前 PR 的测试版,首页效果见截图。千问语音模型和 DeepSeek 模型的名称可以正常显示,两个“管理服务”按钮也已经分别进入语音识别和文本模型设置。

我把 Windows x64 测试包也放在这里,解压后运行 openless.exe 即可,需要 WebView2 Runtime:

测试包对应 PR 提交 2068b2d。打包用的是我 fork 里的独立分支,相对这次 PR 的源码,只调整了构建工作流。

@HKLHaoBin

Copy link
Copy Markdown
Collaborator

我记得这个显示以前好像就有,不知道是不是 2.0 重构的时候给它删掉了

@leolulu

leolulu commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor Author

我记得这个显示以前好像就有,不知道是不是 2.0 重构的时候给它删掉了

确实,正式版有,beta版就无了
我就是按照正式版的样式设计的

@appergb appergb added the branch-retained Keep source branch while the pull request remains open label Oct 30, 2026
@appergb

appergb commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator

This change was reviewed and integrated against current beta through PR #1328, which merged as 53e8783 after resolving the stale branch conflicts and passing full CI. Closing the stale source PR to avoid duplicate merge paths.

@appergb appergb closed this Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ui UI area area:ux UX area branch-retained Keep source branch while the pull request remains open enhancement New feature or request needs-review Needs review P3 Low priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants