Fallmonkey's report: an 11-token gpt-6-astra answer in 2.75 s, too short
after its first token to be measured, showed "≥4 tok/s" from the
whole-turn fallback (def3a41e3), while an 815-token Claude Code reply,
told by the same formula (all output over the whole time, the wait for the
first token in it), showed nothing, because that floor needs 1,000 tokens.
The gate now follows the formula: a Codex turn of one call that is neither
measured nor tells its answer's floor (the answer over the time after the
first token, still held to 1 s and 100 tokens) tells its output over the
whole turn only when that is 1,000 tokens or more over a second or more,
the rule every other whole-time floor has (Row.Floor; app.js ledFloor_).
Under that, the wait is too much of the time to tell anything.
Changed: internal/usage/ledger.go (Row.Floor drops the Codex-only
any-size fallback and falls through to the shared 1,000-token rule),
internal/gui/assets/app.js (ledFloor_ the same), docs/reference.md.
Tests:
- TestCodexWholeTurnFloorNeedsAThousandTokens (new): Fallmonkey's 11
tokens in 2.75 s tell no floor, as Claude Code's 815 in 18 s; 1,000 in
12 s tell one for both. TestCodexRowsTellAFloor and
TestCodexTurnMeasuredOnlyOverASecondAndAHundredTokens updated (380 in
7 s, 496/224 in 11 s, 60, 99, 400 tokens now tell none; 1,200 and 1,300
token one-push turns and a 1,000-token one at 999 ms still do).
With the old ledger.go: FAIL, "astra's 11 tokens over 2.75 s: floor
11/2750 ms, want none", and 8 more cases in the two older tests.
- usage-speed-count.test.cjs: the 496-token and 380-token rows and
Fallmonkey's 11-token astra row show "—", a 1,200-token one-push turn
"≥120 tok/s" with the whole-turn tooltip; in en, zh, zh-TW, ja, de at
five widths. With the old app.js: FAIL "496 tokens over the whole turn
tell nothing".
Ran: go test -tags nogui ./internal/usage; gofmt -l; go vet (darwin,
GOOS=linux -tags nogui, GOOS=windows) on internal/usage; GUI suites
usage-speed-count, reasoning-speed, usage-ledger-detail, usage-ledger-fit,
usage-ledger, usage-session-speed, usage-speed, usage-sum-whole,
panel-usage, i18n-keys in Chromium and WebKit. No strings changed. Not
tried on Fallmonkey's own session files.