Skip to content

Clarify Claude extra usage metric by renaming label to “Extra usage spent”#239

Merged
robinebers merged 3 commits intomainfrom
copilot/fix-claude-plugin-usage-display
Feb 25, 2026
Merged

Clarify Claude extra usage metric by renaming label to “Extra usage spent”#239
robinebers merged 3 commits intomainfrom
copilot/fix-claude-plugin-usage-display

Conversation

Copy link
Contributor

Copilot AI commented Feb 25, 2026

Claude’s plugin currently shows an “Extra usage” field without indicating whether the value is consumed or remaining. This PR clarifies the metric by explicitly labeling it as spent usage in both rendered output and plugin metadata.

  • What changed

    • Updated Claude plugin line labels from Extra usage to Extra usage spent for:
      • progress line path (used + limit case)
      • text line fallback path (used-only case)
    • Updated Claude plugin schema metadata so the declared detail label matches runtime output.
    • Updated the Claude plugin test assertion to expect the new label.
  • Files updated

    • plugins/claude/plugin.js
    • plugins/claude/plugin.json
    • plugins/claude/plugin.test.js
  • Implementation snippet

    // plugins/claude/plugin.js
    lines.push(ctx.line.progress({
      label: "Extra usage spent",
      used: ctx.fmt.dollars(used),
      limit: ctx.fmt.dollars(limit),
      format: { kind: "dollars" }
    }))
    
    // fallback
    lines.push(ctx.line.text({
      label: "Extra usage spent",
      value: "$" + String(ctx.fmt.dollars(used))
    }))
  • Context screenshots (from issue thread)

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/graphql
    • Triggering command: /usr/bin/gh gh pr view --json number,url,headRefName,baseRefName,state (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Claude plugin reports extra usage without clarifying if its spent or available</issue_title>
<issue_description>### Description

The claude plugin has a field for showing the extra usage but does not specify if its Spent usage or available usage.

Image Image

Steps to Reproduce

  1. Open OpenUsage
  2. Open Claude plugin
  3. See extra usage

Expected Behavior

It should show if its spent or available (or both)

Actual Behavior

Shows the "spent" value without showing its actually the spent usage

OpenUsage Version

0.6.7

Operating System

macOS (Apple Silicon)

Screenshots

No response

Additional Context

No response</issue_description>

<agent_instructions>change the label from "Extra usage" to "Extra usage spent" in the claude plugin, then create a pr</agent_instructions>

Comments on the Issue (you are @copilot in this section)

@robinebers @copilot change the label from "Extra usage" to "Extra usage spent" in the claude plugin, then create a pr

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.


Summary by cubic

Renamed the Claude plugin label from "Extra usage" to "Extra usage spent" across the UI and schema to clarify it shows spent usage, not available.
Updated plugin.js, plugin.json, and tests; no logic or data changes.

Written for commit 52f7fd7. Summary will update on new commits.

Co-authored-by: robinebers <16515780+robinebers@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix Claude plugin to clarify extra usage as spent or available Clarify Claude extra usage metric by renaming label to “Extra usage spent” Feb 25, 2026
Copilot AI requested a review from robinebers February 25, 2026 14:25
@robinebers robinebers marked this pull request as ready for review February 25, 2026 14:29
Copilot AI review requested due to automatic review settings February 25, 2026 14:29
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR clarifies the Claude plugin’s “Extra usage” metric by renaming its label to “Extra usage spent” so users understand the value represents consumed (spent) usage rather than remaining usage.

Changes:

  • Renamed the rendered Claude line label from Extra usageExtra usage spent for both progress and text fallback output paths.
  • Updated Claude plugin manifest metadata (plugin.json) to use the same updated label.
  • Updated the Claude plugin test to assert the new label.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
plugins/claude/plugin.js Renames the displayed metric label to “Extra usage spent” in both progress and fallback text rendering paths.
plugins/claude/plugin.json Updates the manifest line label to match the runtime output label.
plugins/claude/plugin.test.js Updates the assertion to expect the renamed label.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@robinebers robinebers merged commit 7bd1383 into main Feb 25, 2026
2 checks passed
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 3 files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Claude plugin reports extra usage without clarifying if its spent or available

3 participants