Skip to content

Conversation

@pybe
Copy link

@pybe pybe commented Jan 21, 2026

Summary

  • Fixed jq path mismatch in statusline-command.sh that caused incorrect version display
  • Changed .pai.version to .paiVersion to match what install.ts writes

Problem

The statusline script was reading from .pai.version in settings.json, but install.ts writes the version to .paiVersion at the root level. This caused the statusline to always show the fallback version ("2.0" or "—") instead of the actual installed version.

Solution

Updated the jq query on line 94 in all three copies of the script:

  • .claude/statusline-command.sh
  • Releases/v2.3/.claude/statusline-command.sh
  • Packs/pai-statusline/src/statusline-command.sh

Verification

Tested locally by comparing jq queries:

# Old query returns fallback
jq -r '.pai.version // "2.0"' settings.json  # Returns: 2.0

# New query returns actual version
jq -r '.paiVersion // "2.0"' settings.json   # Returns: 2.3

Test plan

  • Verified settings.json has paiVersion at root level
  • Tested both jq queries against settings.json
  • Confirmed statusline displays correct version after fix

Fixes #446

🤖 Generated with Claude Code

The statusline script was reading `.pai.version` from settings.json,
but install.ts writes the version to `.paiVersion` at the root level.

This mismatch caused the statusline to always show the fallback version
instead of the actual installed version.

Fixes danielmiessler#446

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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.

Statusline pack reads PAI version from invalid settings.json field

1 participant