mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #4471] [CLOSED] [GUI] The thinking row shows live time and tokens, and counts only the thinking #5062
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#5062
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/4471
Author: @xvcezrqpbxtpzblrt
Created: 10/28/2026
Status: ❌ Closed
Base:
main← Head:gui/reasoning-display-027📝 Commits (1)
fec4741[GUI] The thinking row shows live time and tokens, and counts only the thinking📊 Changes
13 files changed (+107 additions, -24 deletions)
View changed files
📝
apps/host/src/components/ReasoningBlock.tsx(+30 -9)📝
apps/host/src/lib/reasoning.ts(+33 -0)📝
apps/host/src/lib/store.ts(+9 -6)📝
apps/host/src/locales/de.json(+2 -1)📝
apps/host/src/locales/en.json(+2 -1)📝
apps/host/src/locales/es.json(+2 -1)📝
apps/host/src/locales/fr.json(+2 -1)📝
apps/host/src/locales/ja.json(+2 -1)📝
apps/host/src/locales/ko.json(+2 -1)📝
apps/host/src/locales/pt.json(+2 -1)📝
apps/host/src/locales/ru.json(+2 -1)📝
apps/host/src/locales/zh.json(+2 -1)📝
apps/host/tests/live-chat.test.mjs(+17 -0)📄 Description
Problem
The thinking row above an answer had three faults:
Result
Thinking… 1m 20s · ≈3,120 tokens, one tick a second, nothing else in the chat re-renders.Thought for 5m 26s · ≈3,120 tokens, frozen.≈; the engine does not report a reasoning-only count.≈{0} tokenslabel; the existing "Thinking…" and "Thought for {0}" translations are reused.Validation
node --test tests/live-chat.test.mjs→ 17 pass, including: a running segment counts up, a closed message counts only closed time, two segments add instead of replacing, an idle message adds nothing, and the token estimate (CJK vs Latin vs empty).npm run typecheckclean; catalog tests (key sets, French typography, gaps) pass.思考中… 0s · 约 12 词元, then settled to推理 · 约 37 词元(Swift thought for under a second, so the "Thought for" form is not used); the long earlier answer now reads思考了 5m 26s · 约 40,403 词元.Limits
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.