-
Notifications
You must be signed in to change notification settings - Fork 3k
fix(review): harden capture-tui against a same-uid racer, within what Node allows #9274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
wenshao
wants to merge
5
commits into
feat/review-capture-tui-core
from
feat/review-capture-tui-hardening
Closed
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
2974adf
fix(review): harden capture-tui against a same-uid racer, within what…
wenshao 606b7e4
Merge remote-tracking branch 'origin/main' into HEAD
wenshao 57cb9d2
Merge remote-tracking branch 'origin/feat/review-capture-tui-core' in…
wenshao 868e2a6
Merge remote-tracking branch 'origin/main' into HEAD
wenshao 8767e6f
Merge remote-tracking branch 'origin/feat/review-capture-tui-core' in…
wenshao File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Suggestion] R3-4 (new this round, 1 of 5 locations): the merge commit adds a trailing blank line at EOF of this file — it now fails
npx prettier --check(executed at HEAD: exit 1) while the base-branch version passes the same check. Failure scenario:npm run format/npm run preflightrunprettier --write .and silently rewrite this committed file, leaving a dirty diff against HEAD for anyone who runs them. The same shape exists in four more files:lib/agent-briefs.ts(EOF),cleanup.test.ts(two blank lines at EOF),cleanup.ts(three blank lines at EOF), andcapture-tui.ts(EOF); both merge parents end cleanly, so the blank lines were introduced by the reviewed merge itself. Fix: delete the added trailing blank line(s) so each file ends with the single newline after its last code line.中文说明
R3-4(本轮新发现,共 5 处之 1):合并提交在本文件 EOF 处添加了多余空行——现在
npx prettier --check失败(HEAD 上已执行:退出 1),而 base 分支版本通过同样的检查。故障场景:npm run format/npm run preflight运行prettier --write .时会静默重写这个已提交文件,给任何运行它们的人留下相对 HEAD 的脏 diff。同样的形态还出现在另外四个文件:lib/agent-briefs.ts(EOF)、cleanup.test.ts(EOF 两个空行)、cleanup.ts(EOF 三个空行)、capture-tui.ts(EOF);两个合并父都以干净的单换行结尾,因此空行是被审查的合并本身引入的。修复:删除添加的末尾空行,使每个文件以最后一个代码行后的单个换行结尾。— qwen3.8-max via Qwen Code /review (v0.21.15)