fix(pragent): 修复 codex 编排通道 reasoning.effort=minimal 致 run 失败#78
Merged
Conversation
Agent 编排通道开低算力档(MEEBOX_CLI_REASONING=low)时,shim 对 codex 注入 `-c model_reasoning_effort=minimal`,触发两类 codex 400 使 codex exec 退 1: minimal 与默认工具(web_search / image_gen)互斥,且 gpt-5.x-codex 不支持 minimal。 - 低算力档改用 model_reasoning_effort=low(普遍受支持、与工具兼容) - 默认禁用 codex web_search / image_gen(评审/编排在只读临时目录用不到, 收敛工具面并省约 3K tokens/请求):-c web_search=disabled + -c features.image_generation=false Closes #77 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
huhamhire
added a commit
that referenced
this pull request
Jun 18, 2026
承接 #78:本机 CLI 模式下 codex 编排通道改用 model_reasoning_effort=low。 重构后该 env 注释位于 services/agent-orchestrator.ts(dev 侧对应改动在 ipc.ts), 此处同步表述,避免合并 dev 后注释口径不一致。 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
修复 #77:启用 codex 作为本机 agentic CLI 时,Agent 编排通道(一键评审收尾 / 自由规划等)执行 agent 动作报
pr-agent exited with code 1,而普通/review正常。根因
编排通道开低算力档
MEEBOX_CLI_REASONING=low→ shim 对 codex 注入-c model_reasoning_effort=minimal,触发两类 codex 400 使codex exec退 1:minimal与 codex 默认工具web_search/image_gen互斥(API 400 invalid_request_error)。gpt-5.x-codex不支持minimal(仅 none/low/medium/high/xhigh)。普通
/review不开低算力档,故不受影响。改动
minimal→low:普遍受支持、与工具兼容。web_search/image_gen:评审/编排在只读临时目录里用不到,关闭收敛工具面并省约 3K tokens/请求。-c web_search=disabled(字符串枚举 disabled/cached/live)-c features.image_generation=false(feature flag,等价--disable image_generation)ipc.ts编排 env 注释中的minimal表述。验证
实测 codex-cli 0.124.0 / gpt-5.5-codex:
-c model_reasoning_effort=minimal→ exit 1(400)。Closes #77