Repository navigation
Use core v0.54.0: time to first token and generation speed - #240
Merged
Merged
Conversation
Core 0.54.0 records when each response's first token arrives and how fast it is generated, and fixes the live rate, which a single response that is not streamed could push to tens of thousands of tokens per second. - Traffic: the latency cell shows time to first token → total time. Hovering it lists the first token, the total, the generation time and the speed. The table gets no new column, because at the default window size the English table would no longer fit. A running request shows its first token as soon as it arrives. - Request details: five figures (first token, total time, speed, tokens, cost). The bar is split into waiting for the first token and generating, and the response-header time moves into the rows below. A response that is not streamed shows "—" for the first token and the speed, and no bar. - Overview: the latency section reports time to first token. A new Generation speed section gives the median speed by model and by upstream, aligned with the latency section above it. - Upstreams: the timing column reads "TTFT / speed", with the median first token above and the median speed below, in the same two-line layout as the 24-hour column. - The menu bar keeps its wording; its figure now comes from the corrected live rate. Upgrading empties the request history: the request store schema moved from 21 to 22. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
fylorn
added a commit
that referenced
this pull request
Sep 28, 2026
* chore: 2026.9.22 - package.json, src-tauri/tauri.conf.json, src-tauri/Cargo.toml and the thinkwatch-lite entry of src-tauri/Cargo.lock at 2026.9.22 - release-notes/2026.9.22.md: core 0.54.0 (protocol 27), the request history that the new request store empties, and the time to first token and generation speed it adds (#240) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * release-notes: add #237 and #242 to 2026.9.22 - Menu bar: Today catches up when the computer wakes after sleeping through midnight, or when the clock or time zone changes; the traffic page's today and the keys page's 24-hour usage follow (#242) - Routing: model names outside the suggestions are kept in a rule's model condition, Change model to and the dry run (#237) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.
Core 0.54.0 (ThinkWatchProject/ThinkWatch-Core#220) records when each response's first token arrives and how fast the response is generated. This PR pins that release and shows both figures.
Why
The only timing we had was the time to the response headers. The menu bar's live rate divided output by the time after the headers. A response that is not streamed gets its headers only when generation is done, so one such request could push that figure to tens of thousands of tokens per second. The headers of a streamed response usually come back at once, so queueing and reading the prompt were counted as generation.
What changes
request_first_tokenarrives, and before that only the clock. A response that is not streamed shows its total time only, with no hover.dashboardandupstream_statsalso fetch/token-rateand/token-rate/provider. These calls are made from Rust only, so the webview whitelist is unchanged.scripts/shotsmock rows carryttft_msandtokens_per_sec, andstatus.jsonis regenerated from 0.54.0.overview.jsonis left as it is: its sample keys were edited by hand in Use core v0.52.0: upstream and proxy dialogs show the settings as written; keys behind an eye toggle #226, and it has no protocol change here.Upgrading empties the request history: the request store schema moves from 21 to 22.
Checks
pnpm typecheck,pnpm test(553 tests) andpnpm build.cargo fmt --check,cargo clippy --all-targets -D warnings(and--lib), andcargo test, including the control-plane handshake against twcore 0.54.0 built from the tag.🤖 Generated with Claude Code