makecindy / makecindy/cindy

自动审批(Auto-review)模型候选链路由到账号无额度模型,导致审批永远 429 失败

Open
#4,255 5 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
2.7k
Forks
401
Avg merge
21h 48m
Merged PRs (30d)
776

Description

**提交人**: 豆豆爸
**客户端版本**: 0.1.76

---

## 问题

自动审批(Auto-review)功能自启用以来从未成功过。原因是内置的审批模型候选链最终都路由到当前账号没有额度的模型,每次调用都被网关以 429 拒绝,整条链耗尽后回退人工确认,导致自动审批形同虚设。

## 证据(来自本地日志)

- 自动审批候选链(应用内置):`cindy/auto-review`(xd 网关)→ gpt-5.4-nano(OpenAI)→ gpt-5.6-luna(OpenAI)→ claude-haiku-4-5(Anthropic)
- 实际行为:前两个 OpenAI 候选因未配置凭证瞬时失败(`no_candidate`);`cindy/auto-review` 及后续回退模型(deepseek-v4-flash / hy3 / qwen3.8-flash)全部返回 HTTP 429
- 统计:功能启用两天内,候选失败 115 次、审批链耗尽 23 轮,成功记录为 0;失败时段与账号用量无关(凌晨、空闲时段同样 429),说明是该别名路由到的模型对账号不可用/无配额,而非偶发限流
- 账号在同一网关上是有可用模型的(火山 Agent Plan 目录内的 doubao-seed-2.0-mini 等)

## 诉求

任选其一即可解决:

1. **服务端把 `cindy/auto-review` 别名路由到账号实际有额度的模型**(例如账号可用目录中的轻量模型如 doubao-seed-2.0-mini),而不是固定路由到无配额的模型;
2. 或提供用户可配置的审批模型设置项,允许把审批候选指定为账号有额度的模型。

## 影响

自动审批功能对所有走该网关且未配置 OpenAI/Anthropic 凭证的账号完全不可用,每次工具调用都会退化为人工确认,且日志持续产生告警。
---
## 提交时的任务环境

仅代表提交时快照,不一定是故障环境。OS 来自提交客户端本机,不含 SSH 远端主机;Harness / 模型来自当前任务。与运行环境无关的反馈可忽略本段。
**版本区域**: CN
**OS**: darwin arm64 (24.6.0)
**Harness**: Claude Code
**Model ID**: ` glm-5.3-flash `
**界面语言**: zh-CN

Contributor guide

Open the contributing guide

Research direction

Start by tracing the automatic approval candidate-chain configuration and the `cindy/auto-review` gateway alias. Compare the configured fallback models with the account's available model directory and determine whether routing or user configuration is the appropriate fix. Done means automatic approval succeeds for accounts without OpenAI or Anthropic credentials instead of exhausting the chain with 429 responses.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
ai-infra-agents, backend
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.