Skip to content

feat: support suppressing update notification via SUPABASE_NO_UPDATE_NOTIFIER - #5959

Open
PR1709 wants to merge 1 commit into
supabase:developfrom
PR1709:feat/suppress-update-notifier
Open

feat: support suppressing update notification via SUPABASE_NO_UPDATE_NOTIFIER#5959
PR1709 wants to merge 1 commit into
supabase:developfrom
PR1709:feat/suppress-update-notifier

Conversation

@PR1709

@PR1709 PR1709 commented Jul 27, 2026

Copy link
Copy Markdown

Fixes #5853

Summary

Adds support for the SUPABASE_NO_UPDATE_NOTIFIER environment variable to suppress the "A new version of Supabase CLI is available" update notification and skip the release check.

When SUPABASE_NO_UPDATE_NOTIFIER is set to a truthy value (1, true, etc.), Execute() skips checking GitHub for latest releases and suppresses the upgrade message on stderr.

Testing

  • Added unit tests TestShouldSkipUpdateNotifier in apps/cli-go/cmd/root_test.go covering truthy (true, 1), falsy (false), and unset environment variable states.
  • Ran go test -v ./cmd -run TestShouldSkipUpdateNotifier.

@PR1709
PR1709 requested a review from a team as a code owner July 27, 2026 15:38

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b7a9cc2b90

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread apps/cli-go/cmd/root.go
Comment on lines +188 to +190
if shouldSkipUpdateNotifier() {
return
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve post-command suggestions when skipping updates

When SUPABASE_NO_UPDATE_NOTIFIER=1, this return exits Execute before the later utils.CmdSuggestion output, so successful commands that deliberately set an actionable follow-up—such as migration repair suggesting migration list—silently lose that output; the independent Claude plugin hint is also skipped. Scope the condition to the release check and upgrade message rather than returning from Execute.

Useful? React with 👍 / 👎.

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.

Support suppressing "A new version of Supabase CLI is available" message

1 participant