Repository navigation
test(hygiene): 给 #1943 的终端 #status 契约测试补上 K4 标注 - #2098
Merged
Merged
Conversation
#1943 与 #2060 前后脚合入:#1943 新增的终端页 served HTML 契约测试读 worker.ts 源码,没有护栏标注,master 上的测试卫生检查因此变红。这组用例守的是「终端页下发的 #status ↔ 工作台 readTerminalFrameStatus 字面全等读取」的跨文件契约,两侧都是手写字面量、终端页脚本在模板字符串里无法 import,符合 K4。只补标注与理由,不改断言。 Co-Authored-By: Claude Opus 5.5 <[email protected]>
deepcoldy
requested review from
47seek,
LucasIcarus,
xiaoxueSunn and
xiongz-c
as code owners
October 21, 2026 07:03
deepcoldy
added a commit
to yangkaiyu-web/botmux
that referenced
this pull request
Oct 21, 2026
This was referenced Oct 21, 2026
|
🚀 Released in v3.49.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.
改了什么
#1943 与 #2060(测试卫生护栏)前后脚合入 master:#1943 新增的
test/agent-workbench-terminal-status-contract.test.ts里有 5 条用例,从worker.ts模板字符串还原终端页下发的 HTML 再做断言,没有护栏标注,所以 master 上的test/test-hygiene.test.ts变红;所有在途 PR 的 CI(跑的是合入 master 后的结果)也会红在这里。这组用例守的是一个跨文件契约:终端页写
#status,工作台的readTerminalFrameStatus用字面全等读取。两侧都是手写字面量,终端页脚本在模板字符串里没法 import,只能还原下发的 HTML 来核对:#status只放短状态词,字节数和启动错误详情放独立节点。#1943 修的正是「把字节拼进 #status 导致连上后浮层撤不掉」这个问题,符合 K4。本 PR 只在 describe 上方补一行源码结构护栏(K4)标注与理由,不改任何断言。影响面
只改一个测试文件的注释,不影响任何运行行为。
测试验证
npx vitest run --project unit test/test-hygiene.test.ts test/agent-workbench-terminal-status-contract.test.ts:2 个文件,34 条用例通过。bun test ./test/test-hygiene.test.ts:26 条通过。🤖 Generated with Claude Code