### What happened 当Qoder登录完毕后,前端余额调度却迟迟不更新,需要手动更新 ### Reproduction 问题点在于 ```go if health.Hot || ready { m.fetchQuota(ctx, item.ID, item.URL, forceQuota) m.fetchAccountModels(ctx, item) } return nil ``` 和 ```go func (m *Manager) fetchQuota(ctx context.Context, accountID, workerURL string, force bool) { client := qoder.WorkerClient{ HTTP: &http.Client{Timeout: 5 * time.Second}, ProxyAPIKey: m.ProxyAPIKey(), } quota, err := client.Quota(ctx, workerURL, force) if err != nil || quota == nil { return ``` 当 Qoder 账号登录完成,`health.Hot || ready `条件满足执行`fetchQuota`时,`fetchQuota`在额度查询过程中不返回是否为等待获取或获取额度失败做静默处理,导致前端无法正确识别额度刷新成功。 若后续用户不主动执行额度获取动作时,前端则持续显示旧额度或空额度。 建议: 1.让 `fetchQuota `返回 error,将error原因反馈给前端 2.解耦前端额度显示需要获取等待模型列表步骤 ### Versions _No response_
Activity
caigee-cmd commentedon Oct 10, 2026
已由 #287 修复并合入 main(merge commit ac4f008)。
改动要点:
对应本 issue 的两点建议均已覆盖: