makecindy / makecindy/cindy

Codex Auto 在非 OAuth 路由下因 codex-auto-review 失效而阻断所有本地工具

Open
#751 2 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

**提交人**: huangxiaowen
**客户端版本**: 0.1.18

---

## 现象

Cindy Codex 会话启用 Auto 权限后,所有本地工具调用都会在真正执行之前失败,错误阶段为 `automatic approval review`:

```text
Invalid model name: codex-auto-review
```

因此 PowerShell、读取文件、创建或修改 `AGENTS.md` 等互不相关的操作会同时失效。普通设置中没有 Review Model 或 Approval Model 配置,重启客户端后问题仍会持续。

这不是某个命令或文件权限问题,而是自动审批依赖的隐藏模型无法通过当前模型路由访问。潜在影响范围是所有使用 Auto 权限、但不走 OpenAI OAuth 直连的 Cindy Codex 用户,包括 Cindy 网关、API Key、第三方 Provider 与远程 daemon 路由。

## 复现步骤

1. 创建或打开 Cindy Codex 会话。
2. 将会话权限设为 Auto。
3. 使用无法访问 `codex-auto-review` 的网关、API Key 或第三方 Provider 路由。
4. 请求任意需要本地工具的任务,例如执行 PowerShell、读取文件或修改 `AGENTS.md`。
5. 观察工具尚未执行,就在 automatic approval review 阶段失败。
6. 重启客户端并重试,问题仍然存在。

## 期望行为

- 自动审批模型可用时,正常完成审查。
- 当前路由不支持隐藏 reviewer 时,应自动降级到 `untrusted` 或用户确认流程。
- reviewer 不可用不能导致整个本地工具系统持续失效。
- 降级结果应持久化或在当前会话中立即生效,用户无需寻找不存在的 Review Model 设置。

## 实际行为

- 自动审批请求携带 `codex-auto-review`,模型路由返回 invalid model name。
- 当前工具调用被阻止,后续所有本地工具继续触发相同失败。
- 重启无法恢复,且 UI 没有 reviewer 模型配置入口。

## 影响

这是会话级阻断问题:一旦命中,Codex 的文件读取、编辑、终端和项目维护能力几乎全部不可用。问题与具体工具无关,因此潜在影响面高于单一命令失败。

## 已知修复与发布状态

- PR #667 已在主干加入路由能力判断:仅本地 OpenAI OAuth 路由使用 `auto_review`;其他路由降级为 `untrusted`,不再发送隐藏 reviewer 字段。
- 修复提交:`077d0d869ab08cf3d5e97a3eebaeb1c19fbb19d1`。
- 当前 `v0.1.18` 标签不包含该提交。建议保留本 issue 追踪正式版本发布,并在 Windows 上完成回归验证。

相关上游问题:

- https://github.com/openai/codex/issues/24879
- https://github.com/openai/codex/issues/21928
---
**OS**: darwin arm64 (25.2.0)
**界面语言**: zh-CN

Contributor guide

Open the contributing guide

Research direction

Start with PR #667 and commit 077d0d869ab08cf3d5e97a3eebaeb1c19fbb19d1, which contain the reported routing fix. Verify that v0.1.18 lacks it, then test the released fix on Windows with Auto permissions through non-OpenAI OAuth routes; done means unsupported reviewers no longer block local tools.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
ai, devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.