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 |
|
Security review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9feb131e68
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| } | ||
|
|
||
| async #adjustExternalTurn(request: JsonRpcRequest): Promise<void> { | ||
| const params = requestObject(request); |
There was a problem hiding this comment.
Return an error for non-object adjustment params
When codexhost/turn/adjust is sent without params, or with an array or scalar, requestObject() throws before this handler can write -32602. Because the route invokes this through #dispatchDesktopRequest, that rejection is only logged, leaving the caller's request pending indefinitely while the Host continues running. Validate the parameter object without throwing, or catch this error and send an RPC error response.
Useful? React with 👍 / 👎.
|
感谢您为这个 PR 投入的大量工作,也感谢补充了详细的测试和验证说明! 我们认为其中几项改进很有价值,尤其是:
不过,本次提交同时涉及历史替换、多个 Adapter 的生命周期、运行中调整和 Desktop 接入,整体变更范围较大。这些功能的收益、兼容性和风险也有所不同,放在一个 PR 中较难独立验证和安全合入。另外,当前 main 已有“调整方向”的中断续发实现,需要避免重复接入。 建议您按功能拆分为几个较小的 PR,例如:
如果存在公共契约上的依赖,可以先提交最小的基础改动,再提交后续功能。每个 PR 尽量保持实现、测试和文档完整,便于我们逐项审查和合入。 再次感谢您的贡献!这个建议并不是否定这些改进,而是希望把有价值的部分以更清晰、可验证的方式推进。 |
好的,这周末进行调整 |
|
感谢贡献!我们已关注到这个 PR,会尽快安排审查。 |
|
感谢贡献!外部会话末条消息编辑回滚(含你后续拆分的 |
变更
外部 Harness 的消息编辑现在通过原子历史替换事务完成:保留源会话,验证候选历史、配置及独立身份,关闭并排空旧执行,再按 revision 更新映射。Pi、OMP、OpenCode 和 Claude Code 支持该路径;文件改动不随消息编辑回滚。
生成中的“调整”按 Session 能力执行:OpenCode 1.18.25 使用同 Turn steering;Pi、OMP、Claude Code、Grok、DeepSeek Legacy/Modern 在确认旧执行结束后,于原 Session 开启新 Turn。官方 Codex 保持原生透传,未验证能力明确拒绝。
已合并上游 main 的 b71507e,包括 #163/#164 原生工具修复及新的插件接口;适配命令目录与 Session 访问围栏,保留插件动态加载和会话导入。此 PR 不改变官方版本号或发布渠道。
能力边界
#155 的 DeepSeek rollback 属于独立 Adapter 能力;不能仅复制能力开关,仍需验证其原生关闭满足 replacementFence。
验证
本地验证平台为 macOS ARM64。真实 CLI 交互不代表 Windows/Linux 已实机通过;隔离执行 Desktop 编辑函数不等同完整界面点击验收。其他 Harness 的中断续发主要由协议及 Adapter 回归覆盖,不声称所有原生版本均经过 live 测试。
实现与边界见 docs/harness-turn-adjustment.md、docs/claude-code-message-edit-feasibility.md。