Repository navigation
Conversation
xinna2001
requested review from
47seek,
LucasIcarus,
deepcoldy,
xiaoxueSunn and
xiongz-c
as code owners
November 17, 2026 02:22
Owner
首审结论:可合,0 P1/P2(纯测试计时修复,无生产改动)这是从 #3444 拆出的 Claude 启动用例计时根治 PR。我在最新 origin/master(含同样改了这两个测试文件的 #3514/#3519)的合并树上独立验证,非仅采信作者结论。 锚点写法正确(与复审反馈一致)
变异复验:确定性旧红新绿(本地亲自跑)
根因属测试预算,不是生产 bug(量化判据已核代码)
范围与本地验证
以上为自动评审初步意见,最终以维护者/复审为准。 |
Co-Authored-By: Claude Code <[email protected]>
|
🚀 Released in v3.59.18 |
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.
背景
按 #3444 的维护者反馈,将与 TraeX 输入隔离无关的 Claude 测试计时修复拆到独立 PR,并一起处理同批 CI 中失败的兄弟用例。
原有通知等待从 Worker 创建开始,但真实确认计时是在假 CLI 收到启动命令/Enter 后才开始。Node loader、冷启动和首次输入就绪等待会提前消耗 60 秒通知预算;简单在同 SHA 重跑并不能消除这个结构性时序问题。
修改
仅修改两个集成测试文件,不修改任何生产实现、生产超时或断言:
worker-claude-startup-command-first-prompt.integration.test.ts:场景 B 先有界等待真实swallowed事件,再等待 held-prompt notice。worker-claude-startup-switch-confirm.integration.test.ts:先有界等待/effort max的真实submit事件,再等待确认弹窗/通知和首条提示。承接从 fix(traex): 持久派发草稿的迟到归属回执解除输入隔离 #3444 拆出的计时修复。影响范围
只影响 POSIX/tmux 的 Claude 测试夹具和等待起点。未更改共享 Worker、其它 CLI、Windows、持久配置、生产服务和版本号。不连接真实模型,也不重启运行中的 daemon。
验证
在独立 HOME/tmux/IPC 围栏内,Bun 1.4.4 / Node 24 执行:
bun scripts/fenced-run.ts -- env -u BUN_BE_BUN node node_modules/vitest/vitest.mjs run --project unit --maxWorkers 1 test/worker-claude-startup-command-first-prompt.integration.test.ts test/worker-claude-startup-switch-confirm.integration.test.ts:两文件全部通过,覆盖 5 + 6 个场景;清理测试启动环境后完整复跑耗时 311.13 秒。bun scripts/fenced-run.ts -- bun test --timeout 300000 <上述文件>:两文件全部通过,分别 35 / 55 条断言。bun run build:完整编译/typecheck/Dashboard/嵌入资产审计通过。test/test-hygiene.test.ts:28/28 通过。未修改生产 timeout、删断言、重跑远端旧 SHA 或部署本机服务;完整 CI 以本 PR 新 head 为准。
合入顺序
本修复与 #3444 解耦。#3444 追加 revert 保留原历史;本 PR 合入 master 后,#3444 再同步 master,以新 head 的首次完整 CI 为准,而不是重跑旧 SHA 放行。