Skip to content

feat: surface the exact Claude prompt in the update message#31

Merged
daniel3303 merged 1 commit into
mainfrom
feat/update-message-prompt
Apr 23, 2026
Merged

feat: surface the exact Claude prompt in the update message#31
daniel3303 merged 1 commit into
mainfrom
feat/update-message-prompt

Conversation

@daniel3303
Copy link
Copy Markdown
Owner

Summary

The Update available: <tag> line the status line prints when a new release is out previously trailed the repo URL. That is clickable but leaves the reader to figure out what to do next (clone? pull? paste?). Replace the URL with the exact Claude Code prompt to run, so a Pro/Max user can copy-paste straight into Claude and let it follow the documented update flow.

Before

Update available: v1.4.0 → https://github.com/daniel3303/ClaudeCodeStatusLine

After

Update available: v1.4.0 → Tell Claude: "Find my installed status bar and update it"

Code changes

  • statusline.sh:483 — Replace the trailing URL with the Claude prompt.
  • statusline.ps1:460 — Same change, using PowerShell's backtick-escaped quotes.
  • README.md:40 — Align the "Updating" section's suggested prompt with the same wording the status line now surfaces, so the docs and the runtime message are consistent.

How to test

  1. Temporarily set VERSION="1.0.0" (or any value below the latest tag) in statusline.sh / statusline.ps1.
  2. Clear the cache: rm /tmp/claude/statusline-version-cache.json.
  3. Run the script with any valid stdin JSON and confirm the second line reads Update available: <tag> → Tell Claude: "Find my installed status bar and update it".
  4. Restore VERSION.

@daniel3303 daniel3303 merged commit 3043856 into main Apr 23, 2026
@daniel3303 daniel3303 deleted the feat/update-message-prompt branch April 23, 2026 16:27
The 'Update available: <tag>' line previously trailed the repo URL,
which is clickable but requires the reader to then figure out what
to do (clone, pull, paste, ...). Replace the URL with the exact
Claude Code prompt to run — 'Find my installed status bar and
update it' — so a Pro/Max user can copy-paste straight into Claude
and let it run the documented update flow. Align the README's
Updating section with the same wording.
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