Conversation
Adds a `__version__` constant and prints it dim'd next to the tagline so users can tell at a glance which release they're actually running — the quickest path to diagnosing "my numbers look wrong" reports caused by an out-of-date install (e.g. a Homebrew tap clone that hasn't refreshed).
The per-project breakdown rendered jagged because `f"{coloured:<36}"`
counted invisible ANSI escapes toward the field width — the actual visible
text never reached the spec, so the padding was a no-op and durations /
turns / costs all drifted left of where they should sit.
Pre-compute each column's width from the raw text, pad with ljust/rjust
before applying colour, then render. Columns now line up exactly.
`<synthetic>` is Claude Code's marker for events it fabricates locally — cached API errors, no-response slash commands, interrupted turns. It's not a real model, but it was being listed alongside claude-opus / sonnet in the Models row, which read as "you used some weird model called synthetic". Filter it out at render time; token and turn counts still include those events.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
__version__dim'd next to the tagline so users can spot stale installs at a glance.<synthetic>marker out of the Models row (cached errors / no-response slash commands / interrupted turns). Token and turn counts still include those events.Test plan
codestrain— version appears next to taglinecodestrainon a multi-project day — breakdown columns line up cleanly<synthetic>no longer appears in Models row, but token/turn totals unchanged