Skip to content

[Bug]: Usage header is doubled (v2 UI) #45709

Closed

Description

@HenryLoenwind

Bug type

Regression (worked before, now fails)

Summary

Image

just see pic

Steps to reproduce

  1. click on usage

Expected behavior

nothing is doubled

Actual behavior

header header is is doubled doubled

OpenClaw version

3.12, 3.13

Operating system

n/a

Install method

n/a

Model

n/a

Provider / routing chain

n/a

Config file / key location

n7a

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

Activity

  1. added
    bug
    on Mar 14, 2026
  2. added
    regression
    on Mar 14, 2026
  3. dsantoreis commented on Mar 14, 2026

    @dsantoreis
  4. openclaw-barnacle commented on Apr 29, 2026

    @openclaw-barnacle

    This issue has been automatically marked as stale due to inactivity.
    Please add updates or it will be closed.

  5. added
    stale
    on Apr 29, 2026
  6. clawsweeper commented on Apr 29, 2026

    @clawsweeper
    Contributor

    Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve.

    Summary
    Keep this issue open: current main and the latest release still render both the shared Usage header and the local Usage view header. The focused fix path exists in an open PR, but it has not landed and still has review blockers around generated i18n parity.

    Reproducibility: yes. Opening the Control UI Usage tab follows a source path where app-render emits the shared title/subtitle and renderUsage emits a local Usage title/subtitle on current main.

    Next step
    An open PR already targets the same defect, so a second automated repair branch would duplicate the current fix path.

    Review details

    Best possible solution:

    Land a focused Usage-only header cleanup that leaves one header source and keeps English, generated locale bundles, and translation metadata in sync.

    Do we have a high-confidence way to reproduce the issue?

    Yes. Opening the Control UI Usage tab follows a source path where app-render emits the shared title/subtitle and renderUsage emits a local Usage title/subtitle on current main.

    Is this the best way to solve the issue?

    Yes. The narrow maintainable fix is to remove one of the two Usage header sources; the existing focused PR follows that direction but needs its i18n parity blockers resolved before this issue closes.

    What I checked:

    • Issue report and discussion: The issue reports doubled Usage header text when clicking Usage, and the follow-up comment identifies the same v2 UI duplicate-header cluster.
    • Current main renders the shared Usage header: For every non-config tab, current main renders .content-header; for Usage this includes titleForTab(state.tab) and subtitleForTab(state.tab). (ui/src/ui/app-render.ts:1583, b90f28e89506)
    • Current main also renders a local Usage header: The Usage view still emits usage-page-header with tabs.usage and usage.page.subtitle, creating a second title/subtitle region inside the Usage tab. (ui/src/ui/views/usage.ts:424, b90f28e89506)
    • Current main has two Usage subtitle sources: The shared header uses subtitles.usage, while the local Usage view uses usage.page.subtitle, matching the duplicated header/subtitle symptom. (ui/src/i18n/locales/en.ts:413, b90f28e89506)
    • Latest release still has the duplicate source path: The v2026.5.7 release source still renders the non-config shared header and the local usage-page-header, so this is not shipped as fixed in the latest release. (ui/src/ui/views/usage.ts:418, eeef4864494f)
    • Open fix PR exists but is not merged: The focused PR at fix(ui): remove duplicate usage page header #67290 is still open at head 5dd6835ef6a3; prior review identified the visible fix as sound but blocked by generated i18n parity. (5dd6835ef6a3)

    Likely related people:

    • BunsDev: File history shows BunsDev introduced and recently maintained the Usage UI styling/localization surface and nearby Control UI render behavior. (role: Usage UI area contributor; confidence: high; commits: a5309b6f93db, 21ac4b9a8a84, d12c92c216ab; files: ui/src/ui/views/usage.ts, ui/src/styles/usage.css, ui/src/i18n/locales/en.ts)
    • vincentkoc: Recent history shows vincentkoc working on Control UI locale alignment and locale parity tests, which are central to the open fix PR's remaining blocker. (role: i18n pipeline contributor; confidence: high; commits: 297f4c6e603b, 139815d6a9c0, 1ef6bada3650; files: ui/src/i18n/locales/en.ts, ui/src/i18n/test/translate.test.ts, ui/src/i18n/.i18n/*.tm.jsonl)
    • steipete: History shows recent formatting/refactor work across the Usage view and Control UI render files, making steipete a useful routing candidate for conflicts in this area. (role: recent Control UI contributor; confidence: medium; commits: 4505987b9c8b, d35f37a58cd4, 330ba1fa3194; files: ui/src/ui/views/usage.ts, ui/src/ui/app-render.ts, ui/src/ui/components/dashboard-header.ts)
    • Marvinthebored: Recent Usage work touched the same view and styling surface for durable transcript aggregate cache behavior, so they are relevant if a fix conflicts with current Usage rendering assumptions. (role: recent adjacent Usage contributor; confidence: medium; commits: a64b30705fab; files: ui/src/ui/views/usage.ts, ui/src/styles/usage.css)

    Remaining risk / open question:

    Codex review notes: model gpt-5.5, reasoning high; reviewed against b90f28e89506.

  7. removed
    stale
    on Apr 30, 2026
  8. BunsDev commented on May 14, 2026

    @BunsDev
    Contributor

    Fixed by #81950.

    The verified root cause is the Usage tab rendering two page-level header sources: the shared Control UI shell header from app-render plus the local usage-page-header in renderUsage. #81950 removes the local Usage title/subtitle block, deletes the dead CSS, removes the obsolete usage.page.subtitle key through the i18n sync pipeline, and adds a focused render regression test.

    Proof from the replacement PR:

    • node scripts/run-vitest.mjs ui/src/ui/views/usage.test.ts ui/src/ui/views/usage-render-overview.test.ts ui/src/styles/usage.test.ts ui/src/i18n/test/translate.test.ts passed 4 files / 15 tests.
    • pnpm ui:i18n:check reported all 18 locales clean.
    • pnpm exec oxfmt --check --threads=1 CHANGELOG.md ui/src/styles/usage.css ui/src/ui/views/usage.ts ui/src/ui/views/usage.test.ts ui/src/i18n/locales/*.ts passed.
    • git diff --check passed.

    Closing this as fixed by the maintainer replacement PR. Please reopen or file a fresh issue if the duplicate Usage heading still appears after #81950 lands.

  9. added a commit that references this issue on May 15, 2026
    346a773
  10. locked as resolved and limited conversation to collaborators on May 17, 2026
  11. added a commit that references this issue on May 24, 2026
    fbbe064
  12. added a commit that references this issue on Jun 2, 2026
    e1f9fc1
  13. added a commit that references this issue on Jun 10, 2026
    b78936d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugregression

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions