Repository navigation
fix(traex): 修复同一执行轮追加消息被误去重及采集告警 - #2185
Merged
deepcoldy merged 3 commits intoOct 23, 2026
Merged
Conversation
Co-authored-by: TRAE CLI <[email protected]>
xinna2001
requested review from
47seek,
LucasIcarus,
deepcoldy,
xiaoxueSunn and
xiongz-c
as code owners
October 23, 2026 03:11
Co-Authored-By: Claude Code <[email protected]>
deepcoldy
force-pushed
the
fix/traex-same-turn-inputs
branch
from
October 23, 2026 12:04
8508a0c to
ffa73c4
Compare
Co-Authored-By: Claude Code <[email protected]>
deepcoldy
force-pushed
the
fix/traex-same-turn-inputs
branch
from
October 23, 2026 12:09
ffa73c4 to
865bd95
Compare
Owner
|
感谢修复,已合并 🎉 同一原生执行轮内多条 合并前在这个分支上追加了两处回归测试(均为只改测试,未动实现):
暂无其它需要跟进的事项。欢迎继续贡献! |
|
🚀 Released in v3.51.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.
TRAE 在运行中接收追加指令时,可以把多个
UserMessage写入同一个原生turn_id,每条消息的item.id不同。现有 reader 和桥接队列按turn_id去重,导致第二条真实输入被忽略;即使任务已经完成并发送结果,该飞书消息仍会在前置租约到期后收到“transcript 没出现这一轮”的错误告警。本次保留原生消息 ID,以消息身份区分重复镜像与真实追加输入。桥接队列沿用已有 steering 语义,将单个合并终态和后续思考归到最后一条已接收消息,并关闭被替代的思考时间线。补充有界消息去重缓存、旧版记录的跨 drain 绑定和合并终态后的镜像清理;真正未进入 transcript 的输入继续告警。
影响范围是 TRAE 的 transcript reader 和共用桥接队列的可选消息身份路径。其它没有消息 ID 的 bridge 保持既有去重行为;未改变输入提交、模型选择、权限、后端启动或自动重发策略。
验证:
bun run build(Bun 1.4.3):通过,包括源码、脚本及 mock 类型检查、Dashboard 打包、公开域名和嵌入资源检查。bun run daemon:restart、status、stop:通过。真实 Worker/PTY 的既有 type-ahead、重启隔离和延迟终态/tape 回归通过;本次未替换真实飞书实例的运行包。