Skip to content

Native usage page and composer meter: follow-ups #43

Closed

Description

@rynfar

Follow-ups from the native Usage page and composer meter (ledger rows AP-USAGE, CO-METERS).

Usage page (apps/web/src/components/usage):

  • Model prices dialog (UsagePriceOverrides.tsx, usagePriceForm.ts, usagePriceTable.ts): the environment menu's "Model prices" item and the model dialog's "Set price" button are omitted until it lands. Writes usagePriceOverrides through server.updateSettings.
  • Refresh shows a static, disabled icon while it runs; the web spins it (RefreshIcon). Needs a stepped spinner that repaints only itself.
  • The repeated fall-back hour names its UTC offset (GMT-4) where the web names the zone (EDT).
  • Multiple environments: the native client holds one connection, so the environment filter lists one.

Composer (apps/web/src/components/chat):

  • /usage-limits banner (ComposerUsageLimits.tsx, useUsageLimitsPanel.ts): the report logic is ported (t3_core::usage::limits::collect_provider_usage_limits), but intercepting the command belongs to the composer's slash commands. Advertise usageLimitsCommand only once it is intercepted.
  • "Compact context" in the meter's details (onCompact).
  • Prompt length validation (ComposerPromptLengthValidation.tsx).
  • A fork's inherited context usage before its first turn (contextTransfers / forkedFrom), which the thread projection does not decode.

Activity

  1. added
    native:feature
    on Nov 2, 2026
  2. added
    status:in-progress
    and removed
    status:in-progress
    on Nov 19, 2026
  3. rynfar commented on Nov 19, 2026

    @rynfar
    OwnerAuthor

    Closed by PR #432 (merged to fork/native at d3c33dd097): AP-USAGE multi-env summary/prices/limits aggregation, stepped refresh spinner, DST zone formatting, plus verified composer /usage-limits/compact/prompt-length/forked-context follow-ups (completing CO-METERS + AP-USAGE).

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

    native:feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions