Skip to content

fix(update): hide Windows console windows during self-update - #559

Merged
jeff-r2026 merged 1 commit into
Tencent:mainfrom
linjinglan:codex/fix-update-terminal-popup
Sep 15, 2026
Merged

jeff-r2026 merged 1 commit into
Tencent:mainfrom
linjinglan:codex/fix-update-terminal-popup

Conversation

@linjinglan

Copy link
Copy Markdown
Contributor

Summary

The Stop hook runs the CLI updater in the background, but its npm subprocess can still open a Windows console window. Set windowsHide: true on 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

  • Bug fix (non-breaking change that fixes an issue)

Test Plan

  • 122 tests passed across update.test.ts, update-policy.test.ts, and hook-handlers.test.ts.
  • TypeScript tsc --noEmit passed.
  • npm run build passed.
  • Real built CLI and npm validated against an isolated local registry across Claude, Codex, CodeBuddy, and OpenCode dispatch with git, gitlab, and github configurations (12 combinations).
  • Confirmed no-update checks still query again and detect a newly published version on the next check; existing positive-update cache, expiry, and update policies retain their behavior.
  • git diff --check passed.

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.

@linjinglan

Copy link
Copy Markdown
Contributor Author

这个比较影响体验,聊完一句话,就弹一次黑框

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants