Repository navigation
fix(traex): 识别 item_completed 用户事件,修复 adopt 回合静默丢失 - #997
Merged
Merged
Conversation
Co-authored-by: TRAE CLI <[email protected]>
|
🚀 Released in v3.18.0 |
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.
改了什么
TraeX 0.201.x(现场实测 0.201.4)部分 rollout 不再写
event_msg/user_message,用户输入只存在于
history_mutation和event_msg/item_completed(item.type = "UserMessage")。当前
drainTraexRollout()只认event_msg/user_message,导致:task_complete变成孤立 final,无法闭合投递;本 PR:
event_msg/item_completed的UserMessageitem 提取用户事件(严格判定item.type,AgentMessage/ 工具结果一律忽略);turn_id去重;对无turn_id的旧user_message,在同一次 drain 命中其item_completed镜像时替换而非双计;task_complete为唯一权威终态,不盲发孤立 final;为什么
修复 live
/adopt接管 TraeX fullscreen 会话时最终回答静默丢失(现场 0.201.4 复现)。影响面
src/services/traex-transcript.ts(TraeX transcript reader)+ 其单测;验证
pnpm build通过;traex-transcript/codex-bridge-queue/traex-worker-bridge-wiring;