Repository navigation
Backlog
Labels
area:modelsModel selection, availability, switching, rate limits, and model-specific behaviorarea:non-interactiveNon-interactive mode (-p), CI/CD, ACP protocol, and headless automation
Description
Describe the feature or problem you'd like to solve
ACP should allow reading your account limits on all operating systems
Proposed solution
Context. T3 Code runs Copilot CLI over ACP (copilot --acp) and shows the user's subscription limits next to other agents' limits.
Today (1.0.115, Windows):
quotaSnapshots(for examplepremium_interactions: entitlement, used, reset date) arrive only in theassistant.usagesession event, so only after a model call.session/newwithsession.quota_observationopted in emits nothing./usageover ACP returns only the session's counters ("Requests: 0 AI Credits"), not account quotas.account.getQuotaexists (see account.getQuota returns the request timestamp as resetDate instead of the quota reset date #4504) but is not exposed over ACP.
Clients therefore cannot show limits until the user runs a turn. The only workaround is to read the CLI's OAuth token from the OS credential store and call the undocumented copilot_internal/user endpoint. That is fragile and should not be needed.
Request (any one of these would work):
- An ACP extension method, for example
github.com/copilot/getQuota, returning the same shape asquotaSnapshots. - A
session.quota_observationaccount reading aftersession/newfor clients that opt in. - A documented, public REST endpoint for the authenticated user's Copilot quota.
Related: #5029 asks for the same account quota data in the status line payload, and #1240 and #4233 cover session usage over ACP.
Example prompts or workflows
- A user opens T3 Code (an ACP client) and goes to its Usage → Limits page before starting any Copilot session, to decide whether to use a premium model today. The page cannot show Copilot's premium request allowance yet.
- The user runs one Copilot turn.
assistant.usagearrives withquotaSnapshots, and the limit appears. - After the client restarts, the limit is unknown again until the next turn.
Additional context
- Copilot CLI 1.0.115 on Windows,
copilot --acp, protocol v1. - Related: Expose quota usage and billing-period timing in the status line payload #5029 asks for the same account quota data in the status line payload. Support session-usage in copilot --acp #1240 and [ACP] Emit
usage_updatein--acpmode (context window + AI credits) for parity with the interactive statusline #4233 cover session usage over ACP, not account quota. - T3 Code already uses
assistant.usage→quotaSnapshotsfor this, so a reply from option 1 or 2 in the same shape would need almost no client change.
Metadata
Metadata
Assignees
Labels
area:modelsModel selection, availability, switching, rate limits, and model-specific behaviorarea:non-interactiveNon-interactive mode (-p), CI/CD, ACP protocol, and headless automation
Activity