Skip to content

feat(opencode): add quota command and UI display#19141

Closed
cainiao1992 wants to merge 2 commits intoanomalyco:devfrom
cainiao1992:dev
Closed

feat(opencode): add quota command and UI display#19141
cainiao1992 wants to merge 2 commits intoanomalyco:devfrom
cainiao1992:dev

Conversation

@cainiao1992
Copy link
Copy Markdown

@cainiao1992 cainiao1992 commented Mar 25, 2026

Issue for this PR

N/A

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Add a new opencode quota command to query provider quota information.

CLI Features:

  • opencode quota - lists all configured providers with quota
  • opencode quota google - shows Google quota

CLI Output:

3

UI Features:

  • Adds new "Quota" tab in Settings dialog
  • Displays usage with horizontal progress bars

How did I verify my code works?

Screenshots / recordings

1 2
  • Ran bun typecheck in all packages - passed
  • Tested CLI and UI locally

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

- Add opencode quota CLI command to query provider quota
- Add /global/quota API endpoint
- Add Quota tab in Settings dialog (Desktop + Web)
- Display usage with progress bars
- Update SDK with quota endpoint
- Add i18n translations for quota
@github-actions github-actions bot added the needs:compliance This means the issue will auto-close after 2 hours. label Mar 25, 2026
@github-actions
Copy link
Copy Markdown
Contributor

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@github-actions
Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

Based on my search, I found one potentially related PR:

Related PR:

The searches show that #18434 addresses displaying provider usage/quota information with UI components, which overlaps with the quota display features being added in the current PR. This could be a related or potentially duplicate feature implementation.

@github-actions
Copy link
Copy Markdown
Contributor

This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

Feel free to open a new pull request that follows our guidelines.

@github-actions github-actions bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Mar 25, 2026
@github-actions github-actions bot closed this Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant