Repository navigation
Conversation
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review |
commit: |
|
Codex Review: Didn't find any major issues. Chef's kiss. Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
e4785c9 to
7c19153
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. Swish! Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
|
已由统一 PR #4521 收拢,目标分支为 release/2026-10-29;保留原分支与历史,不再单独合并此 PR。 |
Requirement or Bug
在 #4466 之上继续精简内置工具描述,减少每次请求中重复的固定 prompt 开销。
Bug Reproduction Steps
N/A
Root Cause
N/A
Code Changes
Stacked on #4466;本 PR 只包含其最新 head 之后的一个提交。
按 Markdown 源文件字符数统计,12 个描述从 19,687 降到 11,353,合计减少 8,334 字符:
删减标准与 #4466 一致:
ExitPlanMode的options规则。测试无需同步:#4466 已将通用工具快照和
toolsHash归一化,并移除 compaction 对内置 prompt 固定开销的断言。本 PR 只修改 12 个 Markdown 描述文件,不改测试。Behavior Changes and Affected Users
受影响人群:所有主 agent 会话(TUI、print 模式、desktop 与 web、VS Code、ACP、SDK)。子 agent 按实际工具清单接收对应描述,包括 coder、explore、plan 和 Tower worker;Cron 只对主 agent 开放,Write / Edit 不进入只读 profile。下表中的“对应会话”均指实际接收该工具描述的主 agent 或子 agent。
Read / Bash / Agent / Cron / Grep / Write / Edit
ls,模式查找用 GlobReadInputSchema.path逐字保留相同规则CronCreateInputSchema.cron已包含五字段、本地时间、示例及固定日期规则grep/rg,避免绕过路径策略、输出限制和敏感文件过滤WriteInputSchema.path已说明WriteInputSchema.mode已说明old_string/new_string参数说明分别保留\r时,替换内容必须使用实际\r\r规则;Read 状态块仍提示混合换行ReadMediaFile
attachmentFileSource和实际读取逻辑不变<system>元数据说明buildMediaNote在每次读取结果中动态返回这些信息buildMediaNote对普通图和 crop 分别返回对应坐标指引region或full_resolution;无参数重读只会得到同一缩减图region恢复指引;region/full_resolution参数说明保留;运行时错误禁止不变重试buildImageDeliveryLimitError、buildImageDecodeLimitError等实际报错逐字给出恢复方式ls;模式查找用 Globpathschema 限制图片 / 视频;Bash 的通用目录列表规则不变Glob
*.ts、src/*.ts、src/**/*.ts和两类 brace 示例;删去同义**/*.py示例offset=0、head_limit=100、head_limit=0无数量上限GlobInputSchema的offset/head_limit已说明head_limit参数说明和实际输出提示保留offset参数也说明结果会变化path/pattern收窄及include_ignored注意事项TaskOutput / WaitFor / TaskList
output_path;用 Read 翻完整日志output_path存在时使用 Readexit_code,普通失败没有stop_reason/terminal_reasonformatTaskRecord返回实际字段;执行和状态分类逻辑不变terminal_reason区分 timed_out / stopped / failed,异常停止带stop_reasontimeout参数 schema 已完整说明范围及 timeout 语义task_id参数说明保留任意已有任务语义;自动通知机制不变formatTaskRecord按实际任务返回这些字段TaskListInputSchema.limit已包含默认值和范围其他可观测变化与验证
toolsHash;compaction 不再断言固定 token 数。node用户)执行pnpm exec vitest run --maxWorkers=15:17,926 条通过、31 skipped、0 failed;908 个测试文件通过、7 skipped。agent.md后,相关 6 个测试文件 544 条通过、1 skipped,未产生快照更新。agent-core-v2build / typecheck 与仓库pnpm lint通过(0 errors,既有 warnings)。Agent tool execution contract > returns the spawned agent id when a foreground subagent times out在未包含本 PR 的 chore(agent-core-v2): trim built-in tool descriptions #4466 原始 headb9c27f800d上单独运行也为 30 秒超时;本 PR 未改该执行路径。Checklist
/approve).gen-changesetsskill, or this PR needs no changeset.gen-docsskill, or this PR needs no doc update.