Skip to content

Write one bar.perk.available point per Reset Credit #23

Closed

Description

@GordonBeeming

What to build

CodexBar writes bar.perk.available for Reset Credits as a single point: the total count, with one perk.expires_at, the earliest. Each credit has its own expiry, though. Today's telemetry has three credits, expiring 23 Oct, 30 Oct and 7 Nov 2026, but only the 23 Oct date reaches Bar UI. The other expiries only exist in CodexBar's own codex.reset_credit.expires_at series, which Bar UI doesn't read.

Telemetry Spec v1 now asks for one point per Perk when the tool identifies each one (GordonBeeming/bar-ui#19, §4 Perks). CodexBar should write one bar.perk.available point per Reset Credit, each with:

  • perk.kind = reset_credit and value 1
  • perk.id = the credit's ID (the value CodexBar already puts in codex.reset_credit.id)
  • perk.expires_at = that credit's expiry

Bar UI adds the points up for the total and lists each credit on its own line with its expiry.

Acceptance criteria

  • Each sample writes one bar.perk.available point per Reset Credit, carrying its perk.id and perk.expires_at
  • With no credits, the sample still says 0 the way it does now, so Bar UI sees them run out
  • Bar UI's Perks section lists each credit with its own expiry

Activity

  1. GordonBeeming commented on Oct 12, 2026

    @GordonBeeming
    OwnerAuthor

    Fixed by #24 (b90272d). CodexBar now writes one bar.perk.available point per available Reset Credit, with its perk.id and perk.expires_at. It never names more credits than Codex's count, and puts any credits it can't name in one point with no ID. Bar UI lists each credit on its own line once a CodexBar release with this change is installed.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions