Skip to content

fix(updater): 修复更新请求代理支持 - #27

Merged
sunerpy merged 2 commits into
mainfrom
fix/updater-proxy
Aug 13, 2026
Merged

fix(updater): 修复更新请求代理支持#27
sunerpy merged 2 commits into
mainfrom
fix/updater-proxy

Conversation

@sunerpy

@sunerpy sunerpy commented Aug 13, 2026

Copy link
Copy Markdown
Owner

变更

  • 启用 reqwest 系统代理与 SOCKS 支持,允许配置 http://https://socks5:// 更新代理
  • 保存前校验代理 URL,并在检查与下载阶段复用同一代理策略
  • 将网络故障映射为可诊断的 network 错误,同时隐藏代理认证信息
  • 增加前端三态、代理流量证明和 Windows 分发回归测试

验证

  • make lint
  • make test-unit
  • make coverage-gate(总行覆盖率 93.20%,updater.rs 97.69%)
  • cargo xwin check -p agentlens-tauri --tests --target x86_64-pc-windows-msvc
  • make dist-windows
  • make dist-windows-manifest-verify
  • make updater-manifest-verify
  • Playwright 代理 system/custom/invalid 三态截图人工验收
  • 代理实测观察到 manifest 与 artifact 两个请求均经过自定义 HTTP 代理

- 读取系统代理并支持 HTTP、HTTPS 与 SOCKS5 自定义代理

- 增加保存校验、网络诊断和代理变更冲突保护

- 补充代理流量、前端状态与 Windows 分发验收
- 让代理校验错误与系统代理说明同时显示

- 增加六主题对比度、布局和深色截图验收
@codecov

codecov Bot commented Aug 13, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.24561% with 5 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src-tauri/src/updater.rs 98.23% 5 Missing ⚠️
Files with missing lines Coverage Δ
src-tauri/src/commands.rs 96.49% <100.00%> (+<0.01%) ⬆️
src-tauri/src/contract.rs 95.41% <ø> (ø)
src-tauri/src/updater.rs 98.82% <98.23%> (-0.57%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sunerpy
sunerpy merged commit 2e4110a into main Aug 13, 2026
10 of 11 checks passed
@sunerpy
sunerpy deleted the fix/updater-proxy branch August 13, 2026 04:27
sunerpy pushed a commit that referenced this pull request Aug 13, 2026
本 PR 由 release-please 维护:合并后 .github/workflows/release.yml 会自己建 tag 与
draft Release,三平台产物齐全才公开。
---


<details><summary>0.0.6</summary>

## [0.0.6](v0.0.5...v0.0.6)
(2026-08-13)


### Bug Fixes

* **updater:** 修复更新请求代理支持
([#27](#27))
([2e4110a](2e4110a))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant