Files
Nexus/docs/release/20260708/Codex-审批代理修复说明-20260708.md
T
r 9b583ccc91
Nexus CI/CD / test (push) Waiting to run
Nexus CI/CD / e2e (push) Blocked by required conditions
Nexus CI/CD / deploy (push) Blocked by required conditions
Nexus Pre-commit Checks / quick-check (push) Waiting to run
docs(release): 主与 release 分支合并功能清单 + 导入 release 文档目录
便于 Gitea 上 main ↔ release/20260708-axs 合并评审与冲突对照。
2026-07-09 01:14:32 +08:00

1.3 KiB

Codex 审批代理修复说明(2026-07-08)

问题

当前线程的高权限命令审批使用 auto_review,它会请求 codex-auto-review 模型。 你的 CC Switch / custom provider 当前只支持 gpt-5.5,不支持 codex-auto-review,所以 SSH、scp、联网验证都会被拒绝。

修复方式

把当前线程的审批人从:

"approvalsReviewer": "auto_review"

改成:

"approvalsReviewer": "user"

这样以后高权限命令会弹给你手动确认,而不是走坏掉的自动审核模型。

我已生成脚本

C:\Users\uzuma\Documents\Codex\2026-07-06\yuu\outputs\fix-codex-approval-reviewer.ps1

运行方法

在 PowerShell 里执行:

Set-ExecutionPolicy -Scope Process Bypass
& "C:\Users\uzuma\Documents\Codex\2026-07-06\yuu\outputs\fix-codex-approval-reviewer.ps1"

脚本会自动备份:

C:\Users\uzuma\.codex\.codex-global-state.json.bak-switch-approval-时间戳

运行后

建议重启 Codex,或者关闭再打开当前线程。然后我就可以再次尝试:

python scripts\publish_release_bundle.py --remote nexus --tarball ... --sha256 ...

届时应该会弹出手动审批,而不是再报 codex-auto-review 不支持。