Skip to content

fix: status line numbers reset on model switch#27

Merged
jschen5 merged 1 commit into
mainfrom
statusline-model-switch-bug
Mar 18, 2026
Merged

fix: status line numbers reset on model switch#27
jschen5 merged 1 commit into
mainfrom
statusline-model-switch-bug

Conversation

@jschen5
Copy link
Copy Markdown
Contributor

@jschen5 jschen5 commented Mar 18, 2026

The status line was falling back to a live estimate (calculated from current output tokens × model params) when no DB record existed for the session. Switching models triggered this path, making the display appear to reset. Since we always show global totals, read directly from the DB and show nothing until the first Stop hook has committed data.

The status line was falling back to a live estimate (calculated from current output tokens × model params) when no DB record existed for the session. Switching models triggered this path, making the display appear to reset. Since we always show global totals, read directly from the DB and show nothing until the first Stop hook has committed data.
@jschen5 jschen5 merged commit 5034282 into main Mar 18, 2026
1 check passed
@jschen5 jschen5 deleted the statusline-model-switch-bug branch March 18, 2026 20:20
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