Conversation
Signed-off-by: Kevin Yin <182213728+yinkev@users.noreply.github.com>
|
Thanks for the focused cross-locale regression fix. Current main still uses host-default formatting in the three reported paths: Current-main changes since the PR base affect earlier helpers in Automated hermes-sweeper review. |
SummaryOne PR addresses #71659. #71750 removes host-locale dependence from all three reported hard-coded English/USD formatting paths and adds focused regression coverage. Related pull requests
Suggested consolidationKeep #71750 open with a salvage path: preserve its three production locale fixes and focused tests, rebasing them onto current main if necessary. This follows the keep_open review, which reports that intervening changes do not affect the usage formatter; there are no competing PRs to close as duplicates. Complex graphflowchart LR
classDef open fill:#dbeafe,stroke:#1d4ed8,color:#1e3a8a
classDef merged fill:#dcfce7,stroke:#15803d,color:#14532d
classDef closed fill:#e5e7eb,stroke:#6b7280,color:#1f2937
classDef unverified fill:#f3f4f6,stroke:#9ca3af,color:#374151
classDef best stroke-width:3px,stroke:#b45309
classDef target stroke-width:3px,stroke:#4338ca
I71659(["issue #71659 (open)"])
P71750["PR #71750 (open)"]
P71750 -->|best fix| I71659
class I71659 open
class P71750 open
class P71750 best
class P71750 target
click I71659 "https://github.com/NousResearch/hermes-agent/issues/71659"
click P71750 "https://github.com/NousResearch/hermes-agent/pull/71750"
Graph: solid arrow = fixes / best fix, dashed arrow = partial or unverified (see edge label); boxed group = PRs duplicating each other; amber border = best fix; indigo border = target; gray node = closed (state tag in the node label). Cross-PR triage: Reviewed 1 pull request and 1 issue in this complex. Each diff was read against this issue; Assessment working set: 6 kB of PR diffs, 10 kB of issue/PR text, 2 verify verdicts. verdicts reflect diff content, not PR titles. Part of an automated triage batch. |
What does this PR do?
Makes the Desktop's hard-coded English number and USD strings deterministic across host locales.
On native Windows with an
en-DEICU locale, the current formatters produce5.000andUS$25, while the surrounding English copy, existing billing formatter, and tests require5,000and$25. This pins the three outlier formatting sites toen-US, matching the explicit contract already used byuse-billing-state.tsfor USD display strings.The change is intentionally scoped to copy that is currently hard-coded English. It does not change user-locale-aware UI formatting elsewhere.
Related Issue
Fixes #71659
Type of Change
Changes Made
apps/desktop/src/components/assistant-ui/tool/fallback-model/format.tsen-USgrouping.apps/desktop/src/app/session/hooks/use-prompt-actions/utils.tsen-USgrouping.apps/desktop/src/app/settings/billing/billing-amounts.tsen-USUSD contract as the existing billing-state formatter.en-USexplicitly;$25.How to Test
npm ci --ignore-scripts.cd apps/desktop npm run typecheckgit diff --check.Checklist
Code
fix(scope):,feat(scope):, etc.)pytest tests/ -qand all tests pass — N/A for this Desktop-only TypeScript change; focused UI tests and the complete Desktop typecheck passDocumentation & Housekeeping
docs/, docstrings) — N/A; no user-facing configuration or workflow changescli-config.yaml.exampleif I added/changed config keys — N/ACONTRIBUTING.mdorAGENTS.mdif I changed architecture or workflows — N/AScreenshots / Logs
No visual layout changes. Focused result: