Repository navigation
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 10:49
…c-admission-20261023 Co-authored-by: TRAE CLI <[email protected]>
Co-authored-by: TRAE CLI <[email protected]>
Owner
|
已合并,感谢这个高质量的 PR。 初评提出的测试缺口(静态排队裸文本行与 composer 同屏时 queue 专检缺独立用例)你已在后续提交补齐,复审中新增的 legacy「Queued for next turn」窄放行谓词( 评审过程中这个 PR 的排队时序还顺带暴露并修掉了一个相邻的真实缺陷:容量耗尽、结构化终态已到但 PTY composer 未重绘的窗口里,后继消息可能被当成上一回合的 type-ahead 写进降级模型的旧 pane(已由 #2240 修复,本 PR 合入时已包含)。 记录为后续 follow-up(均不阻断):
|
Co-authored-by: TRAE CLI <[email protected]>
deepcoldy
added a commit
that referenced
this pull request
Oct 23, 2026
同步最新 master(含 #2240/#2213,均碰 traex 测试相关文件); merge-tree 零冲突,本 PR 11 文件改动逐字保留(10 文件 patch-id 相同, traex-auto-model 仅 hunk 上下文变化,增删行逐字核实一致)。 Co-Authored-By: Claude Code <[email protected]>
|
🚀 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.
TraeX Auto 在收消息和排空队列时同步读取 tmux 视口,会阻塞 Worker。直接复用 Working 缓存又存在时序漏洞:tmux 已画出 Queued,但普通 FIFO 回调尚未推进 Worker revision,旧缓存仍允许追加输入。
本次改为在现有 flush 互斥内、每条消息出队前异步核验当前视口。消息在核验期间留在队列;结果只授权对应队首,并重新核对 backend、CLI generation、回合、renderer、输出 revision 及输入边界。下一条输入重新读取,不复用上一条授权。
execFile异步原生抓屏,限定超时、输出大小及 SIGKILL;输入核验读取纯文本,不进行同步模式查询。!cliSessionId保持分支注释:切换及恢复池索引都要求已验证的原生会话 ID,仍保留防线。影响面限于 managed TraeX Auto 的 PTY/tmux 输入准入;其它 CLI、adopt、RPC、远端及其它原生屏幕后端保留原路径。新后端方法为可选接口,网页截图/重连种子读取不变。macOS 实测,Linux 由 CI 验证。
验证:
run build通过(源码、脚本、测试 mock 类型检查及产物审计),git diff --check通过。性能实测(同机受控测试,非在线推理 SLA):
原生抓屏仍有进程调用成本;其它截图/输入写入路径仍可能同步。本次没有进行在线 TraeX 推理验证,没有重启日常 Botmux、部署或发布版本。
独立基于提交前最新 master
4922034b。配置与补测试的另一组 follow-up 已在 #2211,本 PR 只处理异步抓屏及对应分支注释。CI 追加输入回归修复
原 CI 的 Node/Bun 均在
traex-terminal-pty-desync.repro.integration的 Auto 两个 reselect 配置上超时。本机同步 master 后仍可复现。根因是新的正向视口准入只识别当前 work 行或 composer;旧版原生画面在 work 行下面还有Queued for next turn,现有容量状态读取器为避免旋转模型返回 other,因此新闸门把正常 type-ahead 永久当成未知状态。增量验证(Bun 1.4.3,macOS arm64):
bun run build、darwin arm64 单文件编译通过。git diff --check通过;无冲突同步 master8f320665。没有改变容量队列的 fail-closed 行为、exact resume、输入归属或其它 CLI 的准入合同。
静态容量文字与 composer 同屏的补测:新增 Too many requests… + ❯ 场景,独立验证显式容量检查保留队首并触发有界重试。删除该检查后新用例失败;恢复后 Worker 文件 Node/Bun 均 98/98 通过。增量只增加行为测试,不改变生产代码。