Repository navigation
fix(traex): 访问受限时有界恢复模型池并保留排队候选 - #2924
Merged
deepcoldy merged 2 commits intoNov 6, 2026
Merged
Conversation
xinna2001
requested review from
47seek,
LucasIcarus,
deepcoldy,
xiaoxueSunn and
xiongz-c
as code owners
November 6, 2026 06:54
Collaborator
Author
|
已补推 CI 修复: 本轮两个失败 job( 本次仅修改测试文件:
验证结果(macOS arm64,Node 24.16.0 / Bun 1.4.3):
已触发更新后的远端 CI;尚不将本地定向回归等同于全量 CI 通过。未部署、未重启运行中的服务、未合并。 |
Owner
|
感谢提交,已合入 master(squash 为 e6d0a46)。 一条非阻塞 follow-up,供后续 PR 自行选择,不影响本次合入:
再次感谢,欢迎继续贡献。 |
This was referenced Nov 7, 2026
|
🚀 Released in v3.58.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 失败终态中的
Model access temporarily restricted.(含流中断和 502 包装)落入通用失败分类。容量 Auto 只观察排队、额度恢复只处理额度专用模式,因此受限模型失败后不会继续搜索模型池,即使后面还有可用模型。修复
影响范围与护栏
仅作用于 Botmux 直接管理、已启用 Auto 的安全 TraeX 终端恢复。保留 exact native resume、原输入传输退休、原回合/调用者归属、取消/人工配置变化、世代及后端变化等检查。已提交 durable、at-most-once、共享/adopt、wrapper、RPC 或远端等不安全回合不扩大恢复范围。
未改其他 CLI 的失败分类、Ferry 策略、Bot 配置、安装包或正式版本;没有重启 live 服务、发版或合并。
验证
bunfig.toml的 fence/shim:621 通过、2 跳过。bun run build与主项目/脚本/测试 mock 类型检查通过。关键行为复核覆盖:
1/99经磁盘序列化及新 controller 恢复:最终仍选择最近真实名次1的候选;无效或过期证据不会赢。复现/回归命令:
node node_modules/vitest/vitest.mjs run --project unit \ test/traex-model-access.test.ts test/traex-model-access-worker.test.ts \ test/traex-model-access-persistence.test.ts test/worker-exact-interrupt.test.ts \ test/zcode-term-action.test.ts test/traex-auto-model.test.ts test/traex-auto-model-worker.test.ts \ test/traex-auto-model-settings.test.ts test/traex-auto-model-preferences.test.ts \ test/traex-quota.test.ts test/traex-quota-worker.test.ts \ test/traex-transcript.test.ts test/claude-transcript.test.ts \ test/codex-transcript.test.ts test/bridge-fallback-gate.test.ts test/test-hygiene.test.ts node node_modules/vitest/vitest.mjs run --project unit \ test/traex-auto-model.integration.test.ts -t 'model access restrictions' bun run build bun scripts/verify-binary.mjs --keepBun 目标文件逐个启动独立进程(不得把所有文件放到一个
bun test进程中),例如:bun test --timeout 180000 test/traex-model-access.test.ts。未运行仓库全量测试;上述 Worker 测试使用受控限制响应,不声称已修改或验证真实账号的限制策略。
通知文案示意
使用实际中文模板离线渲染,非生产截图,不代表已部署。