Follow-up to congee949's rebased dfc24632
(#1463, streamed reasoning speed).
- TestPricedRowKeepsReasoningEvidence: the Requests page reads gateway rows
through blockPricer, which sets swapKnown (64) on every row. The patch
put ReasoningHidden on bit 64 too; on main that would have read every
priced row as hidden, so a tool-only reply with no reasoning, and paced
visible reasoning, lost their speed on the Requests tab. The rebase gave
ReasoningHidden its own bit (256, Flags widened to uint16); this test
prices visible, tool-only and hidden rows, raw and packed, and checks
the flag and the speed read back.
- TestSummaryAfterEndpointFallbackStaysHidden: a Messages client, a model
answered on /responses after /chat/completions said it isn't served
there. call.To still reads Chat, so hidesReasoning(call.To) doesn't see
the summary; only streamTranslated's summaryUpstream marking does. With
no reasoning count the 1500 output tokens were otherwise timed from the
first summary delta. Nothing covered that marking before.
- reasoning-speed.test.cjs: the "no reasoning: 500 in 5 s" comment had
been joined onto the redacted row; put back on its own row.
- docs/subsystems/gui-shell.md: the flag bit, the fallback marking, the
two tests.
Run: go test -tags nogui -count=1 ./internal/usage/ and the gateway's
reasoning tests; reasoning-speed.test.cjs in Chromium and WebKit (en, zh,
zh-TW, ja, de), 10/10.
Broken by hand: rowReasoningHidden = 64 turns TestPricedRowKeepsReasoningEvidence
red (visible and tool-only rows read hidden, 0 tok/s); summaryUpstream
forced false turns TestSummaryAfterEndpointFallbackStaysHidden red (1500
tokens in 314 ms).
Co-authored-by: congee949 <c86474321@gmail.com>