makecindy / makecindy/cindy

使用 Claude 订阅时 worker 会话仍偶发触发 aigw 网关 ExceededBudget 限流错误

Open
#2,717 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
2.7k
Forks
395
Avg merge
21h 48m
Merged PRs (30d)
776

Description

**提交人**: 匿名
**客户端版本**: 0.1.46

---

## 现象
在 Orca worker / 协同会话中执行任务时,请求偶发失败,报错:

```
API Error: Server is temporarily limiting requests (not your usage limit) · ExceededBudget: User=aigw:[REDACTED] over budget. Spend=3.0389646, Budget=3.0
```

用户使用的是 Claude 订阅(非按量付费的 API key),但请求仍被 aigw(AI gateway)按预算限流拒绝。

## 复现步骤
1. 使用 Claude 订阅账号登录
2. 开启协同(Orca team),在 worker 会话中执行任务
3. 偶发出现上述 ExceededBudget 错误

稳定复现条件用户未知(目前只出现过一两次)。

## 期望行为
使用 Claude 订阅时,请求不应计入或受限于 aigw 网关预算,不应出现 ExceededBudget 错误;或至少错误提示应说明该预算的来源与恢复方式。

## 实际行为
worker 会话请求被网关以 ExceededBudget 拒绝,提示 Spend=3.0389646 超过 Budget=3.0,错误文案同时又声明 "not your usage limit",与用户实际使用的 Claude 订阅身份相矛盾,令人困惑。

## 复现频率
偶发,只出现过一两次,尚未找到稳定复现条件。

## 已尝试
- 重试 / 等待一段时间后重试

## 诊断摘要(经用户同意,已脱敏)
- 错误类别: 网关限流 (ExceededBudget)
- 网关用户标识: `aigw:[REDACTED]`(已脱敏)
- Spend=3.0389646, Budget=3.0
- 认证方式: Claude 订阅(非 API key)
- 出现场景: Orca worker / 协同会话
---
**OS**: darwin arm64 (27.0.0)
**界面语言**: zh-CN

Contributor guide

Open the contributing guide

Research direction

No file, test, or code entry point is named. Start by tracing Orca worker and collaboration-session requests for Claude subscription users into the aigw gateway, using the reported ExceededBudget logs as the initial signal. Done means establishing why subscription requests receive the budget limit and verifying the behavior or error guidance after the cause is addressed.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
ai, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.