Skip to content

feat(chat): show persistent session token usage - #792

Open
dawNotPoi wants to merge 1 commit into
xintaofei:mainfrom
dawNotPoi:feat/748-persistent-token-usage
Open

dawNotPoi wants to merge 1 commit into
xintaofei:mainfrom
dawNotPoi:feat/748-persistent-token-usage

Conversation

@dawNotPoi

Copy link
Copy Markdown
Contributor

Summary

  • show current-conversation token usage persistently in the composer status row
  • keep a full breakdown on wide composers and switch to a compact total/cache-hit summary in tiled or narrow layouts
  • reuse the existing context/token popover, hide unavailable cache counters, and share one usage subscription across both indicators
  • add the short token unit to all 10 locale bundles

Verification

  • pnpm test — 493 files, 7262 tests passed
  • pnpm build — production static export passed (32/32 pages)
  • targeted ESLint and Prettier checks passed for every changed file
  • compiled-CSS layout QA passed at 736px and 420px with no overlap, wrapping, or status-row height change
  • Windows Tauri debug build launched successfully during implementation

Closes #748

Add a responsive token summary to the composer status row and reuse the existing detailed usage popover. Keep usage scoped to the runtime conversation, hide unavailable counters, and share one subscription across both indicators.

Ensure the status row has a real size-container ancestor so its compact and detailed layouts respond to panel width.

Closes xintaofei#748
@dawNotPoi
dawNotPoi force-pushed the feat/748-persistent-token-usage branch from 0d2ab84 to ccc713a Compare September 22, 2026 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] 在会话输入框下方常驻展示当前会话 Token 用量

1 participant