A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode,DeepSeek Harness and more. Only official website: ccswitch.io
Rust ai-toolsclaude-codecodexdeepseek-harnessdesktop-appgrokgrokbuildhermeskimi-codemcpopen-sourceopencodepiprovider-managementrustskillsskills-managementtauriwsl-support
fix(agy): pass the global proxy to agy /usage again
Jason74ae498e326f
diff --git a/src-tauri/src/services/subscription_agy.rs b/src-tauri/src/services/subscription_agy.rsindex 7a48cf8c9..873632a8e 100644--- a/src-tauri/src/services/subscription_agy.rs+++ b/src-tauri/src/services/subscription_agy.rs@@ -215,7 +215,9 @@ pub(crate) async fn get_agy_subscription_quota() -> Result<SubscriptionQuota, Stlog::debug!("[AgyQuota] 未找到 agy 可执行文件,跳过额度查询");return Ok(SubscriptionQuota::not_found(TOOL));};- let mut command = tokio::process::Command::new(&bin);+ // background_command 带上设置里的全局代理(agy 只认环境变量里的代理);进程树的清理+ // 和 Windows 隐藏窗口由 run_command_output 负责。+ let mut command = crate::agy_config::background_command(&bin);command.args(["--print", "/usage", "--output-format", "json"])// 只问官方登录:GUI 进程里残留的 Key 会让 agy 改走 Key 模式。