GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — tui: tok/s excludes reported reasoning tokens in V2 · Issue #48705 · anomalyco/opencode Closed DescriptionDescriptionOpenCode V2's The footer sums The indicator should count both non-reasoning output and reasoning tokens, using a duration that covers the generation of both. For providers such as OpenAI, the raw API output count already includes reasoning, so the calculation must use OpenCode's normalized counters without double-counting the provider total. PluginsNo plugins are required for the code-level reproduction below. OpenCode versionV2, upstream source at Steps to reproduce
This isolates the missing reasoning count from provider-specific timing behavior. In normal use, it affects the footer whenever a provider reports reasoning tokens separately and the tok/s indicator is enabled. Screenshot and/or share linkCalculation: opencode/packages/tui/src/routes/session/rows.ts Lines 349 to 369 in 2df0095
Session usage normalization: opencode/packages/core/src/session/usage.ts Lines 11 to 19 in 2df0095
Operating SystemmacOS (Darwin 25.6.0, arm64); the calculation is platform-independent. TerminaliTerm2 ActivityMetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |