fix: 让 Codex CLI 支持全局助手暂存变更 - #27
Merged
Merged
Conversation
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.
问题\n\n全局助手 v2 使用 Codex CLI 时被强制降级为纯文本模式,导致录入草稿只能返回文字,无法调用 stage_* 工具进入暂存区。\n\n## 修复\n\n- 增加受限的 Codex CLI 宿主工具桥接协议\n- 由 Codex 选择工具与参数,CharacterArc 进程内执行读取和暂存工具\n- 保留暂存后由用户确认、再写回对应词条的现有流程\n- 防止相同工具参数重复执行造成重复词条\n- 普通聊天文本保持兼容\n\n## 验证\n\n- 新增 Codex CLI 暂存工具回归测试\n- Codex CLI 原有测试通过\n- Runtime v2 AgentLoop 测试通过\n- pnpm run typecheck 通过\n- pnpm run build 通过