Repository navigation
fix(update): hide Windows console windows during self-update - #559
Merged
jeff-r2026 merged 1 commit intoSep 15, 2026
Merged
Conversation
Contributor
Author
|
这个比较影响体验,聊完一句话,就弹一次黑框 |
This was referenced Sep 20, 2026
Closed
7 tasks done
Walternater
pushed a commit
to Walternater/teamai-cli
that referenced
this pull request
Nov 2, 2026
…#559) Co-authored-by: linjinglan <[email protected]>
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.
Summary
The Stop hook runs the CLI updater in the background, but its npm subprocess can still open a Windows console window. Set
windowsHide: trueon version lookup, installation, and post-update hook refresh so these subprocesses stay hidden.Regression assertions cover all three subprocess launches. The English and Chinese usage guides document the Windows behavior. Existing cache rules, check frequency, and update policies are unchanged.
Type of Change
Test Plan
update.test.ts,update-policy.test.ts, andhook-handlers.test.ts.tsc --noEmitpassed.npm run buildpassed.git diff --checkpassed.Notes for Reviewers
The CLI matrix uses isolated configuration and a mock npm registry; it does not exercise live Git provider authentication or actual Agent GUIs. One npm subprocess failed during the matrix run; its affected combination and the remaining combinations passed on rerun. Window hiding is covered by subprocess-option regression assertions, with manual GUI verification still outstanding.