render 部署的 CPA 接入 codex 时出现了 Access blocked by Cloudflare. This usually happens when connecting from a restricted region (status 403 Forbidden), url: https://xxx.com, cf-ray: 9d7f7d081c4ffe8b-SIN。但是在 charry studio 中可以正常接入 cap。
受这位佬友帖子的启发找到了一个调试方法
https://linux.do/t/topic/1993358
这种问题大概率都是 codex 的上下文中被注入了敏感内容,我在使用 opencode 调试这个问题的时候读到了 codex 的上下文也报错了,不过报错的这样的:
我的解决方案是找到 codex 向 cpa 发送的请求(一般在~\.codex\sessions\xxxx\xx\xx 下面)然后二分法定位哪一段内容导致了报错。我找出来是在 agent.md 里面
(charry studio 没有加载这部分内容,合理了),删掉就好了。
1 个帖子 - 1 位参与者