Repository navigation
feat(tui): show token throughput - #42112
opencode-agent[bot] wants to merge 1 commit into
Conversation
48139b5 to
b275118
Compare
b275118 to
5e27dd7
Compare
Otherwise solid: the new optional schema fields keep old persisted messages parseable, the defensive |
|
|
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
Summary
(visible output tokens - 1) / (last token - first token)tok/sfor completedstopandlengthresponses in assistant footers and turn-token diagnosticsThis is the V2 implementation of the token-throughput requests in #5374 and #6096. The metric follows the standard TPOT/output-speed definition: TTFT and tool execution remain outside the generation window, hidden reasoning tokens are excluded, and non-streaming or too-short responses report no score. Live event projections and replayed message projections retain the same timing fields.
Checks
bun test test/cli/tui/data.test.tsx test/cli/tui/session-rows.test.ts(packages/tui)bun typecheck(packages/tui)bun test test/session-projector.test.ts test/session-runner-tool-events.test.ts(packages/core)bun typecheck(packages/core)bun typecheck(packages/schema)bun typecheck(packages/client)git diff --check29.0 tok/s, GPT-5.6 Sol28.1 tok/s, Claude Fable 5N/Abecause its final response was buffered into a 66ms sampleRequested by: @R44VC0RP (vogel via Slack)