You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Post "https://daily-cloudcode-pa.googleapis.com/v1internal:loadCodeAssist": dial tcp <ip>:443: i/o timeout
Print mode: /usage failed: retrieving quota summary: failed to retrieve user quota summary: failed to get load code assist response: Post "https://daily-cloudcode-pa.googleapis.com/v1internal:loadCodeAssist": context deadline exceeded
Additional Context / 补充信息
原因分析:
v4.0.43 通过进程内 reqwest 客户端直接请求 Google 接口查额度,会自动应用设置里的全局代理(global_proxy_url)。
Activity
farion1231 commentedon Nov 28, 2026
感谢反馈,分析得很准确!
v4.0.44 起额度改由后台运行
agy --print /usage查询,而设置里的全局代理只作用于 CC Switch 自己发出的请求,没有传给 agy 子进程;agy 只认HTTPS_PROXY这类环境变量、不读系统代理,所以从桌面启动时会直连 Google 超时。已经找到原因并准备了修复:后台运行 agy(查额度、列模型)时会把全局代理传进去(http/https 和 SOCKS5 都支持),合并后会随新版本发布。在此之前,可以先在系统/用户环境变量里设置
HTTPS_PROXY(例如http://127.0.0.1:7890),然后重启 CC Switch 临时绕过。另外,关于没有代理时 agy 弹出登录页的问题在 #10066 跟进。
fix(agy): pass the global proxy to the agy child process
fix(agy): pass the global proxy to agy /usage again
farion1231 commentedon Nov 29, 2026
修复已随 v4.0.45 发布:后台运行 agy 查询额度、列出模型时都会带上设置里的全局代理(http/https 和 SOCKS5 都支持)。升级后可以把之前手动加的
HTTPS_PROXY环境变量去掉。如果问题仍然存在,请在这里回复或新开一个 issue。