Skip to content

[codex] Show status bar amounts in RMB#4485

Closed
jiaxindeyang-a11y wants to merge 2 commits into
esengine:main-v2from
jiaxindeyang-a11y:codex/statusbar-cny-amounts
Closed

[codex] Show status bar amounts in RMB#4485
jiaxindeyang-a11y wants to merge 2 commits into
esengine:main-v2from
jiaxindeyang-a11y:codex/statusbar-cny-amounts

Conversation

@jiaxindeyang-a11y

@jiaxindeyang-a11y jiaxindeyang-a11y commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Format the desktop status bar's turn cost and session cost with the RMB symbol.
  • Normalize the status bar balance display to the same RMB prefix so balance and spend readouts match.
  • Format the right workbench/context panel cost cards and cost breakdown rows with the same RMB display.
  • Keep the shared formatMoney behavior unchanged for places that intentionally need source-currency formatting.

Root Cause

The desktop UI mixed display paths: status bar cost readouts used the session currency from usage events, wallet balance used the backend-provided display string, and the right workbench context panel still formatted its session cost with the original panel currency. That allowed spend to show as $... while balance showed as ¥....

Validation

  • npx.cmd tsx src/__tests__/context-panel-breakdown.test.ts
  • npm.cmd test
  • npm.cmd run test:typecheck was attempted earlier on this branch but still fails locally because desktop/frontend/wailsjs is not generated in this checkout (Cannot find module '../../wailsjs/go/main/App').

@github-actions github-actions Bot added v2 Go rewrite (1.x) — main-v2 branch, active development desktop Wails desktop app (desktop/**) labels Jun 15, 2026
@SivanCola

Copy link
Copy Markdown
Collaborator

Thanks @jiaxindeyang-a11y. We are closing this PR as superseded by #4329, which is now the canonical integration route for the cost/currency/status-bar work.

Your contribution is recorded in #4329: you normalized the desktop status bar, wallet balance, ContextPanel, and cost-breakdown display around RMB so spend and balance readouts stay consistent.

You are acknowledged in #4329 as a repository co-contributor for this work.

@SivanCola SivanCola closed this Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

desktop Wails desktop app (desktop/**) v2 Go rewrite (1.x) — main-v2 branch, active development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants