Skip to content

usage: an unknown recorder reads as "undefined", and a fast device clock marks fresh records old #3785

Closed

Description

@devswha

Follow-up to #3782 (merged as ee99e2b), which shows a Claude account used only through Gajae Code from the report Gajae Code keeps. Left from its review, both reproduced:

  1. A page still running the code between feat(usage): show a Claude account used only through Oh My Pi, from its recorded limits #3754 and feat(usage): show a Claude account used only through Gajae Code, from the last report it keeps #3782 knows only Oh My Pi's name, so until it reloads, a Gajae Code account reads "Recorded by undefined, 4 min ago" (translate("en", "Recorded by {tool}, {when}", { tool: { omp: "Oh My Pi" }["gjc"], ... })). Give an unknown recorder a fallback name (RECORDER_NAME[by] ?? by) in src/lib/usage.ts, so the next recorder does not repeat it.
  2. isStale compares the device's clock with the server's checked_at. A device whose clock runs 15 minutes or more ahead marks every fresh record as old and hides the composer's usage chip. Judge the age on the server, or send the server's own time with the report and compare against that.
  3. Read only: with PI_CODING_AGENT_DIR or PI_CONFIG_DIR set, the Oh My Pi and Gajae Code readers can open the same store; the Oh My Pi half of the PI_CONFIG_DIR handling does not trim the name or refuse .. as the Gajae Code half does.

Activity

  1. added a commit that references this issue on Nov 13, 2026
    95b3c81
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions