Repository navigation
feat: 运行期间定时检查更新与一键重启安装,新增六家润色服务商,失败时显示服务原因 - #187
Merged
Merged
Conversation
开启自动更新后,启动 10 秒后检查一次,此后每次检查结束 4 小时再检查;之后的检查只下载,下载好后不再检查,等用户点标题栏的「重启以更新」。Windows 上照旧由安装程序在后台安装,不显示窗口。 feat: AI 润色新增 Kimi、智谱 GLM、火山方舟、腾讯混元、小米 MiMo 和 OpenRouter,Kimi 与智谱可切换中国站和国际站 feat: 识别、润色和测试连接失败时显示服务返回的原因,其中的密钥和账号已遮住 fix: Google AI Studio 繁忙或思考用完输出上限时,润色会说明原因,不再只显示「请求失败」
Codecov Report❌ Patch coverage is @@ Coverage Diff @@
## main #187 +/- ##
==========================================
+ Coverage 93.78% 93.85% +0.06%
==========================================
Files 388 390 +2
Lines 55271 56009 +738
Branches 3743 3765 +22
==========================================
+ Hits 51836 52567 +731
Misses 2939 2939
- Partials 496 503 +7
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 3 files with indirect coverage changes 🚀 New features to boost your workflow:
|
Merged
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.
改动
这一个 PR 合并为补丁版本 0.1.8(用户 2026-10-25 要求):
apps/desktop/src-tauri/src/update.rs,dictation.md §9「运行期间再检查」,做法同 Lockra 0.16.3):开启自动更新后,启动 10 秒后检查一次,此后每次检查结束 4 小时再检查(AutoSchedule,在UpdateSlot::finish排下一次;手动检查也算)。只有启动检查可以安装update-ready.json记下的版本,之后的检查只下载;ready/installing后不再检查;失败 4 小时后再试;关掉开关清掉已排的检查。标题栏「重启以更新」一次点击就开始安装(对话框直接显示「正在安装」),悬停提示写明版本;设置里的说明写明两个时间。Windows 照旧以/S静默安装(0.1.7 起)。VOLTIP_UPDATE_INTERVAL_SECS(至少 60 秒)缩短间隔;清单地址是http://且都在本机或局域网(localhost、回环、私有或链路本地 IPv4)时,注入的插件配置带dangerousInsecureTransportProtocol,否则发布构建会拒绝 http 地址。公网主机仍必须 https,安装包照旧验签;发布构建不设这两个变量。chat_controls,Kimi K3 不能传 temperature)。图标取自 Lobe Icons(bcdb7c8),首页列表依赖 feat(voltip): AI 润色服务商新增 Kimi、智谱 GLM 等六家的图标 firlab#113(已合并)。voltip-reply,§3.12):识别、润色、测试连接失败时显示服务的原话,遮住密钥、令牌和账号;客户端自己的英文说法由serviceReasonText换成界面语言(同步文档站时发现界面把「ASR rejected the credentials」夹在中文里)。reasoning_effort: low和更大的输出上限,记录里写原因。验证
make verify(toolchain 1.98.0):除格式检查外全部通过(Rust 覆盖率门槛、clippy、cargo-deny、IPC e2e、web lint/typecheck/coverage/build、台账、主机名扫描、发布脚本、自建网关);格式问题修正后cargo fmt --check与pnpm -r run format:check通过。update.rs在暂停时钟上验证 4 小时间隔、启动检查的安装许可只用一次、ready停止检查、开关;tests/update.rs用本地清单服务器验证运行期间再检查(去掉排期那一行后测试超时失败)、开关关闭时手动检查不排检查;UpdateDialog.test.tsx验证「重启以更新」一次点击调用update_install一次(去掉调用后测试失败);labels.test.ts覆盖每种客户端说法的中英文。两个依赖时间的集成测试在所有核心满载下各运行 200 次。scripts/smoke-windows-update.ps1按插件参数运行同一安装器:/S512 次采样没有窗口,/P833 次采样 0 次可见,都重新打开 Voltip。未验证