Repository navigation
fix(traex): 按实时目录永久清理自动模型池失效项 - #3504
Merged
deepcoldy merged 11 commits intoNov 17, 2026
Merged
Conversation
Co-authored-by: TRAE CLI <[email protected]>
xinna2001
requested review from
47seek,
LucasIcarus,
deepcoldy,
xiaoxueSunn and
xiongz-c
as code owners
November 16, 2026 06:21
Collaborator
Author
|
补充修复本 PR 的 CI 失败。三个红色检查中, 本次只修改六个
实际验证:
|
Collaborator
Author
2026-11-17 合并兼容与生命周期修正已同步主干 组合验证发现并修复两处实际行为问题:
验证证据
未改生产 daemon、全局配置、模型账号或版本号。完整 CI 需按本轮新 head 重新判断,不沿用原 head 全绿结论。 |
Co-Authored-By: Kimi <[email protected]>
Co-Authored-By: Kimi <[email protected]>
Co-Authored-By: Kimi <[email protected]>
Co-Authored-By: Kimi <[email protected]>
Co-Authored-By: Kimi <[email protected]>
兄弟会话子集采用守卫(严格更小+目录确认)此前只有正向用例, 变异放松为任意 superseded 配置均可采用时无测试咬红。补手动改池 携带池外模型的反例:必须回退原池继续投递,不得采用外来配置。 Co-Authored-By: Claude Fable 5 <[email protected]>
Owner
|
技术性操作:最新 head e12297d 的 pull_request 事件未触发任何 workflow(check-suite 为空),close 后立即 reopen 以重放事件、让 CI 正常注册。代码与评审结论不变。 |
Co-Authored-By: Kimi <[email protected]>
Owner
合码说明与后续 follow-up已 squash 合入 master(落地 这轮评审里确认修复的核心问题:
以下为非阻断的 follow-up,可在后续独立 PR 处理,不影响本次合入:
再次感谢贡献。 |
deepcoldy
pushed a commit
to xushulong-solo/botmux
that referenced
this pull request
Nov 17, 2026
合入 deepcoldy#3504(TraeX 自动模型池实时目录清理),与本 PR 仅 test/helpers/ worker-function-harness.ts 一处硬冲突:两侧各向 worker 函数懒加载清单 加入不同符号(本 PR 三个 publish* 档位观测、deepcoldy#3504 三个 traex catalog), 取并集,六个符号均在合并后 worker.ts 顶层存在。 deepcoldy#3504 在冷启动路径新增 assertSessionLaunchModelChoiceAllowed 调用, worker-pool 函数 harness 补同名真实模块回退(scope 注入仍优先), 否则 with(scope) 评估的档位围栏用例会报不是函数;typecheck 不覆盖该运行时缺口。 合并树 tsc/build 过;vitest 21 文件 947 项全绿(含 deepcoldy#3504 用该 harness 的 6 个)。 Co-Authored-By: Claude Fable 5 <[email protected]>
|
🚀 Released in v3.59.19 |
This was referenced Nov 18, 2026
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.
背景
自动模型池里保存的名称不等于当前 CLI/账号仍可用的目录。目录已不包含某个模型时,旧逻辑仍可能在启动或容量换模时选择它,最终因原生模型元数据不可解析而启动失败。
改动
model/list只有完整、非空、合法分页到末尾才产生目录证明;公开 id/model/displayName 别名与负载数据分离,缺负载不等于模型失效。影响面
worker-pool仅新增私有 worker IPC 维护分支,启动前不要求尚未绑定的 executor;授权仍由当前 worker、配置指纹和文件内 CAS 保证。本地验证
本机整仓测试卫生扫描曾触及默认 30 秒墙,增大本次运行的测试超时后通过,没有放宽行为断言或去掉测试。
[email protected] run build:完整构建、类型检查、Dashboard bundle 与资源审计通过。对抗场景与修正
superseded当作成功并给旧控制器盖新策略,已修为停止旧流程、不采用新 config、不提前应用旧目录,增加组件行为回归。提示示意
当前代码生成的正文,使用合成模型名称;为本地内容示意,非飞书线上截图。
未部署、未重启线上服务;不包含发版或合并操作。
2026-11-17 合并兼容与生命周期修正
已同步主干
a18abd734,保留原 PR 提交和主干的 Codex interrupt-target、TraeX 首次输入准入、固定模型提示分支。两处文本冲突按并集处理,没有覆盖主干新增逻辑。没有 force-push。组合验证发现并修复两处实际行为问题:
store.executions(ref, turnId)在当前 API 中只匹配 undefined attempt,不能当成枚举所有批次;同时遗漏了cancelRequested。通知等待期间任务已经取消或进入终态,旧实现仍可能删除模型池和独立设置。现在清理 IPC 携带精确 attempt;cold 首查/后台重试和 warm queued head 从实际请求传递;host 在通知前和落盘 CAS 时拒绝取消、终态、缺失/不匹配 attempt,以及更高 attempt 出现后的旧请求。真正尚无 execution 的 pre-bootstrap 清理保持可用,旧终态 attempt1 不误挡新活动 attempt2。验证证据
test/traex-model-catalog-lifecycle.integration.test.ts:真实生产函数 + 隔离 SQLite/配置 + 假时钟,Node 29/29、Bun 1.4.4 29/29(109 断言);原始两问题在修复前已出现具体失败,不依赖读代码推断。bun run build通过(编译、typecheck、Dashboard 与资源审计)。未改生产 daemon、全局配置、模型账号或版本号。完整 CI 需按本轮新 head 重新判断,不沿用原 head 全绿结论。