qwen-code feature request: per-model TTFT/TPS in web shell, fixing wrong metrics

qqqys · ghdev · 2026-10-19

This issue requests showing per-model average TTFT and output speed (tokens/s) in the Web Shell Token Usage panel, and first fixing the measurement: for tool-call-only responses, TTFT currently equals the whole request because the OpenAI converter only emits functionCall after streaming completes, even though a streaming tool call counts as visible output from the start. Output speed uses durationms - ttftms, where durationms is taken after the consumer processes the last chunk, so single-chunk responses register thousands of tok/s or get dropped. Proposed fix: record first-to-last visible chunk time on the API response event, and add per-model generation counters to the daemon stats route.

Original post →

More from coding & agent

coding & agent channel →