Skip to content

feat(buddy): 支持管理应用与插件下载代理 - #488

Merged
shanyuhai123 merged 4 commits into
useLexora:masterfrom
QAyong:codex/download-mirror-setting
Oct 29, 2026
Merged

shanyuhai123 merged 4 commits into
useLexora:masterfrom
QAyong:codex/download-mirror-setting

Conversation

@QAyong

@QAyong QAyong commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

背景与关联

在已合并的 #479 基础上,为应用更新包和插件包提供可管理的下载代理。

主要改动

  • 「设置 → 网络代理」增加下载代理总开关,以及条目的添加、编辑、排序、启停和删除;内置代理也可删除,关闭总开关保留列表。
  • 仅代理 GitHub 包文件,Release API 和插件目录仍请求原地址。按启用顺序尝试代理,最后回到原地址,继续校验包大小与 SHA-256。
  • 响应或正文停滞时超时换线,失败和取消时释放请求;本地文件写入失败直接报错。

验证

  • pnpm lint:fix、pnpm type-check 通过。
  • Buddy 全量测试:5,354 项通过,32 项跳过。
  • Linux Electron 构建版和开发模式均通过列表管理、总开关、保存失败和重启持久化验收。
  • 未进行 Windows / macOS 安装态验收。

兼容与风险

下载设置独立保存在 downloads,现有 proxy 配置保持原结构。缺失下载配置时默认启用三个内置代理;显式空列表会保留,不自动恢复已删除项。第三方代理只负责传输,完整性仍以原地址取得的元数据为准。

probe and others added 2 commits October 28, 2026 20:35
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@shanyuhai123

Copy link
Copy Markdown
Contributor

这确实比前面的更合理一些

@shanyuhai123 shanyuhai123 changed the title feat(buddy): 新增下载镜像设置,插件包下载支持镜像 feat(buddy): 支持管理应用与插件下载代理 Oct 29, 2026
@shanyuhai123
shanyuhai123 merged commit 919caef into useLexora:master Oct 29, 2026
10 checks passed
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.

2 participants