Repository navigation
fix(adapter): 适配器专项——CoCo 双路径、Antigravity 不重试、Codex 信任框、TRAE 空回复、adopt 新格式 - #1007
Merged
Merged
Conversation
助手侧对称缺口:item_completed AgentMessage item 与丢 phase 方言的 agent_message 未被跟踪,task_complete 空 final 时无法恢复。新增 itemCompletedAgentText 与 recoverTraexEmptyFinal,候选按 lastFinalAnswer > AgentMessage item > 无 phase agent_message 优先级, 均经 traexTrailingSentinel 守卫区分 deliberate silence。 Co-Authored-By: Claude <[email protected]>
codex 0.147+ 不再写 event_msg/user_message,用户回合只存 response_item role=user,导致 adopt 磁盘扫描 title 为空、会话被丢弃。无 event_msg 时 回退到首个非合成 response_item 用户消息,跳过 environment_context/ recommended_plugins/permissions/AGENTS.md 合成 preamble 与 botmux 注入。 Co-Authored-By: Claude <[email protected]>
traecli 0.201.5 已将 history 迁到 ~/.trae/cli/history.jsonl(尊重
TRAE_HOME),旧 ~/.cache/coco 路径不再写入,导致消息已提交也持续误报
submit_unconfirmed。writeInput 改双路径轮询:旧路径 historyDeltaContains
(mode+content 前缀匹配,兼容旧 traecli)与新路径 traexHistoryMatchDelta
({session_id,ts,text} 精确匹配)任一命中即确认;HISTORY_PATH 改为 submit
时动态计算以兼容后设的 TRAE_HOME。
Co-Authored-By: Claude <[email protected]>
首次 Enter 后 800ms 未见 history 确认就补按 Enter、最多 4 次的重试逻辑, 在 agy history 慢写入(冷启动/大 prompt)时会把重试 Enter 落在已提交输入 框,导致同一问题重复提交 5-6 次。改为单次 Enter 后只轮询 history 不重发 (对齐 grok 的 Do not retry Enter 模式),慢写入由 worker 的 deferred recheck 兜底。 Co-Authored-By: Claude <[email protected]>
codex 0.149 按键处理器在信任框渲染瞬间尚未就绪,同步发出的 Enter 落进死 输入队列被静默丢弃(上游 openai/codex#39487),消息未提交直至 20s 后 submit_unconfirmed。trustHandled 仍同步置位防重入,Enter 改为 400ms 后 fire-and-forget 发送。handleVisibleStartupInteraction 为共用启动交互路径, Claude Code 信任框仅 dismiss 晚 400ms,无功能回归。 Co-Authored-By: Claude <[email protected]>
review 修复: - worker.ts 信任框 setTimeout 回调增加 backend/cliSpawnGeneration 围栏, 400ms 内 respawn 时旧 timer 不向新会话发 Enter;回调加 try/catch 防 tmux session 已退出时 unhandled 异常 - resumable-session-discovery 新格式 rollout 首个真实用户回合后早退 (fallbackTitle 命中即停扫),避免每个文件扫满 5000 行 - isSyntheticPreamble 模式锚定行首,散文提及标签的真实 prompt 不被误杀 - 补 respawn 围栏测试与散文提及 preamble 标签阴性测试 Co-Authored-By: Claude <[email protected]>
|
🚀 Released in v3.18.0 |
This was referenced Oct 13, 2026
Closed
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.
PR 3: sprint-adapters(CLI 适配器修复 5 项)
改了什么
来自「Botmux 交流群」近 7 天用户反馈的适配器专项,5 个修复:
fix(adapter): coco 提交确认兼容 traecli 新历史路径~/.cache/coco/history.jsonl迁到~/.trae/cli/history.jsonl,CoCo 适配器仍查旧路径,消息已提交也持续误报submit_unconfirmed。改为双路径轮询(旧路径historyDeltaContains+ 新路径traexHistoryMatchDelta),任一命中即确认;HISTORY_PATH改动态计算(兼容后设TRAE_HOME)。fix(adapter): antigravity 提交不再重发 Enterfix(worker): 信任框 Enter 延迟 400ms 发送handleVisibleStartupInteractiontrust 分支改为trustHandled=true同步置位 +setTimeout(400ms)fire-and-forget(上游 TUI: first-run trust dialog drops the ENTER sent as soon as it renders (0.148.0, 0.149.0-alpha.1; 0.147.0 accepts it) openai/codex#39487)。fix(traex): 识别助手侧 item_completed 与无 phase agent_messageitemCompletedAgentText(识别 AgentMessage item)+ 无 phase agent_message fallback,均经traexTrailingSentinel守卫区分 deliberate silence。fix(adopt): rollout 标题提取兼容 codex 0.147 response_item 格式response_item/message role=user,adopt 磁盘扫描只认event_msg/user_message,新会话不显示(issue fix(adopt): Codex 0.147 Desktop 会话未被磁盘恢复扫描器发现 #878)。parseRolloutTranscript增加 fallback:取首个非合成 response_item role=user 消息为 title,跳过 environment_context/permissions 等合成 preamble 与 botmux 注入。影响面
handleVisibleStartupInteraction——唯一调用方不 await trust 完成,Claude Code 信任框仅 dismiss 晚 400ms 无功能回归;Aiden 更新弹窗分支未触碰测试验证
pnpm build通过pnpm test全量:18171 passed;3 个失败(bwrap/dsh 沙箱环境问题)已在干净基线复现确认预存