Skip to content

fix(cli): Suppress update banner after running update command#142

Merged
misonijnik merged 1 commit into
mainfrom
misonijnik/fix-redundant-update-suggestion
May 15, 2026
Merged

fix(cli): Suppress update banner after running update command#142
misonijnik merged 1 commit into
mainfrom
misonijnik/fix-redundant-update-suggestion

Conversation

@misonijnik
Copy link
Copy Markdown
Member

PersistentPreRunE always spawned an async check that read the running binary's version. During opentaint update, that version is still the OLD one, so the check queued an "update available" hint for the very version being installed; PersistentPostRun then printed the banner after the successful update, telling the user to run the command they just ran.

Skip the async check entirely when the subcommand is update, so no hint is ever queued for this command.

PersistentPreRunE always spawned an async check that read the running
binary's version. During `opentaint update`, that version is still the
OLD one, so the check queued an "update available" hint for the very
version being installed; PersistentPostRun then printed the banner
after the successful update, telling the user to run the command they
just ran.

Skip the async check entirely when the subcommand is `update`, so no
hint is ever queued for this command.
@misonijnik misonijnik merged commit 982e7c6 into main May 15, 2026
13 checks passed
@misonijnik misonijnik deleted the misonijnik/fix-redundant-update-suggestion branch May 15, 2026 00:24
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.

1 participant