Skip to content

Notify terminal users about CLI updates - #83

Open
sam-bretz wants to merge 1 commit into
mainfrom
sam/cli-update-notice
Open

sam-bretz wants to merge 1 commit into
mainfrom
sam/cli-update-notice

Conversation

@sam-bretz

Copy link
Copy Markdown
Contributor

What Changed

Show an update hint after terminal help and version output when npm has a newer stable release. Follow-up to #75.

How It Works

Read a 24-hour local cache and refresh npm's public latest tag in a detached worker, so the foreground never waits for the network. Cache failed checks too, bound requests to 1.5 seconds, and validate versions before printing them. JSON, redirected output and CI skip notices and checks. Set METERGRAPH_NO_UPDATE_CHECK=1 to disable both.

QA Overview

650 tests passed, 5 skipped; all 16 package checks passed. Focused coverage includes version ordering, expiry, failed-check backoff, worker locking, opt-out, JSON/piped output, malformed responses and request deadlines. Verified the public npm endpoint and a real terminal background refresh with a temporary cache.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-24T01:43:00.681830Z fd7b313 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

This branch has not been deployed

No deployments
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