Repository navigation
feat(traex): 支持 Bot 级 Backend Variant 配置 - #1201
Merged
Merged
Conversation
Co-authored-by: TRAE CLI <[email protected]>
Co-authored-by: TRAE CLI <[email protected]>
Co-authored-by: TRAE CLI <[email protected]>
Co-authored-by: TRAE CLI <[email protected]>
Co-authored-by: TRAE CLI <[email protected]>
Co-authored-by: TRAE CLI <[email protected]>
Co-authored-by: TRAE CLI <[email protected]>
TWT233
force-pushed
the
feat/traex-backend-variant
branch
from
September 3, 2026 05:08
31675e2 to
da1b5ee
Compare
deepcoldy
approved these changes
Sep 3, 2026
deepcoldy
left a comment
Owner
There was a problem hiding this comment.
双审一致:可合(0 阻断)。
已验证(基于最新 origin/master ae72b2c05 建真实合并树 3069f6abe):
- 零冲突;
bun run build✅、tsc --noEmit0 错 - PR 相关 8 个测试文件 876 通过 / 1 skip
- CI 四腿全绿
- 本次 force-push 是纯 rebase(7 个 commit 主题一一对应、无功能变化),作者已把主干新增的
dshProfile并入src/types.ts的 init 类型行,与主干senderType三方共存
三处不阻断的建议(可后续跟进):
sessionAgentConfig的冻结门与 repair 门缺直接用例(属纵深防御,上游解析已挡住跨 CLI 泄漏)=== 'traex'字面量散在 8 处,建议抽isBackendVariantCliId()(对照既有isConfigurableReasoningCliId())- 描述里两处措辞:变体只在流式卡片展示(回复卡页脚是纯指标);且用
/cli显式选过 CLI 的会话不继承 bot 级变体(与既有reasoningEffort行为一致),建议补进文档
注:这是自动评审的初步意见,最终以维护者审阅为准。
This was referenced Sep 3, 2026
|
🚀 Released in v3.18.14 |
This was referenced Sep 4, 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.
改动内容
关联并关闭 #1200。
modelBackendVariant?: 'standard' | 'max'配置;未设置时继承 TraeX 全局配置。-c model_backend_variant=...启动,RPC 仅在thread/start写入该配置,thread/resume不重复发送。影响面
验证
通过:
功能相关测试覆盖配置解析、普通 TraeX argv、RPC start/resume、会话冻结/fork、卡片显示、Dashboard 保存/清理,以及 worker 实际启动参数。
补充说明:
bun run test在当前环境有 6 个与本 PR 未触及模块相关的既有失败:test/grok-transcript.test.tstest/claim-botmux-bin-binary.test.tstest/session-discovery.smoke.test.tstest/plugin-mcp-sandbox.test.ts(3 项)本 PR 的相关定向用例均通过;上述完整套件失败会单独跟进,不在本 PR 中归因或修复。