Skip to content

fix(session): show cship binary version in cship.version module#159

Merged
stephenleo merged 2 commits intomainfrom
fix-version
Apr 20, 2026
Merged

fix(session): show cship binary version in cship.version module#159
stephenleo merged 2 commits intomainfrom
fix-version

Conversation

@stephenleo
Copy link
Copy Markdown
Owner

Summary

  • $cship.version previously displayed the Claude Code CLI version from the JSON context payload (ctx.version), which meant upgrading cship had no visible effect on the displayed value
  • It now uses env!("CARGO_PKG_VERSION") at compile time so it always reflects the installed cship binary version
  • Adds -v/--version CLI flags (cship -v / cship --version)
  • Updates sample_context.json from stale 1.0.802.0.31

Closes #154

Test plan

  • cargo test — all 413 tests pass
  • cship -v prints cship 1.5.0
  • cship --version prints cship 1.5.0
  • $cship.version in statusline shows 1.5.0 (not Claude Code's version)
  • cship explain shows 1.5.0 for cship.version row

🤖 Generated with Claude Code

stephenleo and others added 2 commits April 20, 2026 09:26
Closes #154. $cship.version previously displayed the Claude Code CLI
version from the JSON context payload (ctx.version), which meant
upgrading cship had no visible effect on the displayed value.

It now uses env!("CARGO_PKG_VERSION") at compile time so it always
reflects the installed cship binary version. Also adds -v/--version
CLI flags and updates sample_context.json to a current Claude Code
version string (2.0.31).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@stephenleo
Copy link
Copy Markdown
Owner Author

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

🤖 Generated with Claude Code

@stephenleo stephenleo merged commit 237f538 into main Apr 20, 2026
3 checks passed
@stephenleo stephenleo deleted the fix-version branch April 20, 2026 02:47
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.

How to update/upgrade an installed version of CShip?

1 participant