claude-code - 💡(How to fix) Fix [BUG] claude upgrade reports incorrect upgraded version and incorrect target version - but still upgrades [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#46913Fetched 2026-04-12 13:29:49
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
labeled ×3commented ×1

Error Message

Error Messages/Logs

no error message, just the incorrect version is shown

Fix Action

Fix / Workaround

It should show the actual version claude is upgrade to.

Code Example

❯ claude --version                                                                                   ─╯
2.1.96 (Claude Code)

❯ claude upgrade                                                                                     ─╯
Current version: 2.1.96
Checking for updates to stable version...
New version available: 2.1.92 (current: 2.1.96)
Installing update...
Using global installation update method...
Successfully updated from 2.1.96 to version 2.1.92

❯ claude --version                                                                                   ─╯
2.1.104 (Claude Code)

---

no error message, just the incorrect version is shown
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

❯ claude --version                                                                                   ─╯
2.1.96 (Claude Code)

❯ claude upgrade                                                                                     ─╯
Current version: 2.1.96
Checking for updates to stable version...
New version available: 2.1.92 (current: 2.1.96)
Installing update...
Using global installation update method...
Successfully updated from 2.1.96 to version 2.1.92

❯ claude --version                                                                                   ─╯
2.1.104 (Claude Code)

What Should Happen?

It should show the actual version claude is upgrade to.

Error Messages/Logs

no error message, just the incorrect version is shown

Steps to Reproduce

> claude upgrade

Claude Model

None

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.96

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

iTerm2

Additional Information

No response

extent analysis

TL;DR

The issue can be resolved by investigating the versioning logic in the claude upgrade command to ensure it accurately reflects the updated version.

Guidance

  • Verify the versioning logic in the claude upgrade command to ensure it correctly updates and displays the version number.
  • Check the installation method used by the claude upgrade command to see if it's correctly updating the version.
  • Investigate why the version number is being displayed as 2.1.104 after the update, despite the update message indicating an update to 2.1.92.
  • Review the code responsible for displaying the version number to ensure it's correctly retrieving the updated version.

Example

No code snippet can be provided without more information about the internal workings of the claude command.

Notes

The issue seems to be related to the versioning logic in the claude upgrade command, but without more information about the internal workings of the command, it's difficult to provide a more specific solution.

Recommendation

Apply workaround: The user should manually verify the version number after updating to ensure it matches the expected version, and report any discrepancies to the development team for further investigation.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING