Fix GitHub acceleration settings initialization and UI integration#93
Draft
Fix GitHub acceleration settings initialization and UI integration#93
Conversation
…ation UI Co-authored-by: way-zer <15688938+way-zer@users.noreply.github.com>
Co-authored-by: way-zer <15688938+way-zer@users.noreply.github.com>
… clarify cache purpose Co-authored-by: way-zer <15688938+way-zer@users.noreply.github.com>
Member
|
Copilot
AI
changed the title
[WIP] Add GH acceleration feature with multiple retry support
Refactor GitHub acceleration to support multiple proxies with UI configuration
Jan 29, 2026
…, QuickSettings UI Co-authored-by: way-zer <15688938+way-zer@users.noreply.github.com>
Author
已完成重构 (commit 1435eb3):
实现细节:
文件变更:删除 3 个文件,新增 1 个
已完成所有重构 (最新 commit a2b7ea3): 1. 单文件实现 ✅
2. 参考 customButtons 模式 ✅
3. 通过 Hooks 包装 block 实现 ✅
文件对比:
已根据 CI 配置测试了 patches 应用,全部成功。 Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Co-authored-by: way-zer <15688938+way-zer@users.noreply.github.com>
Copilot
AI
changed the title
Refactor GitHub acceleration to support multiple proxies with UI configuration
Refactor GitHub acceleration with single-file implementation, block-wrapped retry/cache, and QuickSettings UI
Jan 29, 2026
way-zer
reviewed
Jan 29, 2026
| button("${Iconc.blockRadar}", "雷达开关") { ArcRadar.mobileRadar = !ArcRadar.mobileRadar }.get().also { | ||
| SettingsV2.bindQuickSettings(it, ArcRadar.settings) | ||
| } | ||
| button("GH", "GitHub加速配置") { /* 长按/Shift显示配置 */ }.get().also { |
|
|
||
| // 代理列表配置(参考 customButtons 的实现模式) | ||
| @JvmField | ||
| val proxyList = object : Data<List<ProxyConfig>>("githubAcceleration.proxies", emptyList()) { |
|
|
||
| private fun wrapBlockWithCache(req: Http.HttpRequest, cached: CachedResponse) { | ||
| val originalBlock = req.block | ||
| req.block = { res -> |
Co-authored-by: way-zer <15688938+way-zer@users.noreply.github.com>
Copilot
AI
changed the title
Refactor GitHub acceleration with single-file implementation, block-wrapped retry/cache, and QuickSettings UI
Add missing i18n for proxy list configuration title
Jan 29, 2026
…Arc to gitignore Co-authored-by: way-zer <15688938+way-zer@users.noreply.github.com>
Copilot
AI
changed the title
Add missing i18n for proxy list configuration title
Fix GitHub acceleration settings initialization and UI integration
Jan 29, 2026
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.
Four issues in the GitHub acceleration feature implementation: incorrect settings UI binding, missing default value fallback, and submodule tracking.
Changes
Removed QuickSettings binding: Deleted GH button from
NewToolTable.ktthat incorrectly usedbindQuickSettings. Settings now accessible only via SettingsV2 panel.Fixed proxy list defaults: Added fallback provider to
proxyListData object followingcustomButtonspattern:This ensures default proxies (github.com, ghproxy.com, gh.tinylake.top) load via framework's fallback mechanism instead of manual init.
/Arcto.gitignore.Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.