Skip to content

v0.42.2: statusline reads cwd too (fix blank badge)#43

Merged
Shahinyanm merged 1 commit into
masterfrom
v0.42.2-statusline-cwd
Jun 5, 2026
Merged

v0.42.2: statusline reads cwd too (fix blank badge)#43
Shahinyanm merged 1 commit into
masterfrom
v0.42.2-statusline-cwd

Conversation

@Shahinyanm
Copy link
Copy Markdown
Member

Follow-up to v0.42.1. Badge still showed bare [TP]. Cause: tp-statusline.sh read only workspace.current_dir, but CC 2.1.165 uses a top-level cwd (grep: cwd 10x vs current_dir 1x). When CC sends cwd, no project resolved → no events → blank badge.

Fix: read current_dir, fall back to cwd. Both shapes now render [TP 14k]; neither degrades to [TP] gracefully. 1350/1350 tests.

Follow-up to v0.42.1. The badge still showed bare `[TP]` for the user
even with the cumulative fix. Cause: tp-statusline.sh read only
`workspace.current_dir` from the Claude Code statusline payload, but
the 2.1.165 bundle uses a top-level `cwd` field far more (grep: cwd 10x
vs current_dir 1x). When CC sends `cwd`, the script resolved no project
dir → found no events file → blank badge.

Fix: read `current_dir`, fall back to top-level `cwd`. Verified both
payload shapes now render `[TP 14k]` against a real project; neither
present still degrades gracefully to `[TP]`.

Tests: 1350/1350 pass (+1 cwd-fallback).
@Shahinyanm Shahinyanm merged commit 0bc74d8 into master Jun 5, 2026
@Shahinyanm Shahinyanm deleted the v0.42.2-statusline-cwd branch June 5, 2026 13:12
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