feat(session,tui,app): latency and tk/s on the panel - #147
Merged
Conversation
The processor stamps time.first on the assistant message at the first stream event that carries content — reasoning-start, text-start, tool-input-start or tool-call. With created and completed that is enough for two numbers a person watching a model actually wants: how long the provider took to start answering, and how fast it wrote once it did (output plus reasoning tokens over first→completed). Both are computed where they are shown, from the message's own timestamps, so nothing is measured on the client and an older message simply shows nothing. TUI: the footer's usage line gains `· 1.2s · 84 tk/s` after context and cost. App: two rows in the context tooltip and two stats in the context tab, with keys in every locale. The regenerated packages/sdk/openapi.json is large because the committed one was stale — still titled "opencode" and missing the goal routes and the newer schemas; this is the first regeneration since. types.gen.ts changes only by `first` and the two fan-out config keys. Claude-Session: https://claude.ai/code/session_013JrKXL4pdgTu2EtCjgiYyq
filipeforattini
force-pushed
the
feat/panel-throughput
branch
from
September 6, 2026 02:58
3d76821 to
b22c20b
Compare
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.
time.first, stamped by the processor at the first stream event with content (reasoning-start, text-start, tool-input-start, tool-call).… · $0.12 · 1.2s · 84 tk/s.packages/sdk/openapi.jsonis regenerated for the first time in a while — the committed one was still titled "opencode" and lacked the goal routes — hence the size.types.gen.tsonly gainsfirstand the two fan-out config keys from feat(session): real fan-out — parallel subtasks, background subagents on by default, per-session cap #145.Tests: TUI throughput (3), app metrics (21 incl. 3 new) and i18n parity, redcode processor/schema/prompt suites (107). Typecheck clean in schema, core, redcode, tui, app.
https://claude.ai/code/session_013JrKXL4pdgTu2EtCjgiYyq
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.