1.3 KiB
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 不支持。