Skip to content

fix: detach update notifier from command completion chain#197

Merged
felipefreitag merged 3 commits intomainfrom
fix/update-notifier-blocking-b0ee
Apr 10, 2026
Merged

fix: detach update notifier from command completion chain#197
felipefreitag merged 3 commits intomainfrom
fix/update-notifier-blocking-b0ee

Conversation

@bukinoshita
Copy link
Copy Markdown
Member

@bukinoshita bukinoshita commented Apr 9, 2026

Summary by cubic

Prevents the CLI from hanging after successful commands by running the update check in the background. The notifier no longer blocks process exit, addressing BU-641.

  • Bug Fixes
    • Detach update check from the program.parseAsync() chain by using void checkForUpdates().catch(() => {}), so it’s fire-and-forget but still prints notices when available.

Written for commit 7edb01f. Summary will update on new commits.

The checkForUpdates() promise was returned from the .then() callback,
making it part of the parseAsync() completion flow. On stale/missing
update cache with slow or unreachable GitHub, this could block process
exit for up to 5 seconds after a successful command.

Use void to fire-and-forget the update check instead of awaiting it.

Co-authored-by: Bu Kinoshita <bukinoshita@users.noreply.github.com>
@bukinoshita
Copy link
Copy Markdown
Member Author

@cubic-dev-ai can you review?

@cubic-dev-ai
Copy link
Copy Markdown
Contributor

cubic-dev-ai Bot commented Apr 9, 2026

@cubic-dev-ai can you review?

@bukinoshita I have started the AI code review. It will take a few minutes to complete.

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

@bukinoshita bukinoshita marked this pull request as ready for review April 10, 2026 16:18
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

@felipefreitag felipefreitag merged commit ebdc874 into main Apr 10, 2026
7 checks passed
@felipefreitag felipefreitag deleted the fix/update-notifier-blocking-b0ee branch April 10, 2026 18:18
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.

3 participants