Skip to content

fix(kiro): show subscription tier and label credit meter as credits - #567

Merged
caigee-cmd merged 2 commits into
mainfrom
fix/kiro-plan-and-credit-unit
Nov 20, 2026
Merged

caigee-cmd merged 2 commits into
mainfrom
fix/kiro-plan-and-credit-unit

Conversation

@caigee-cmd

Copy link
Copy Markdown
Owner

Problem

Kiro account cards show credits (e.g. 552.37 / 907) but no subscription tier, and the meter unit reads INVOCATIONS.

Production quota_json for both Kiro accounts on sgp3 had no plan field at all.

Cause

  • quotaSnapshotFromInfo (internal/runtime/manager_quota.go) copied Plan only for Codex, so the tier the Kiro adapter parsed from subscriptionInfo was dropped before persisting. The frontend already renders a plan for kiro.
  • Kiro labels the CREDIT breakdown's unit INVOCATIONS; the adapter passed it through.
  • subscriptionPlan mapped the title KIRO PRO+ to PRO instead of PRO_PLUS.

Change

  • Carry Plan for Kiro in the runtime snapshot.
  • Report the CREDIT breakdown as credits; other resource types keep Kiro's unit.
  • Map PRO+ to PRO_PLUS.
  • Tests: runtime persistence of the Kiro plan, CREDIT unit + KIRO PRO+ mapping.
  • Changelog fragment changelog/unreleased/kiro-plan-credit-unit.md.

Validation

go vet ./..., go test ./..., git diff --check pass locally.

The runtime quota snapshot copied Plan only for Codex, so the Kiro plan
was dropped before it was saved. Kiro's CREDIT breakdown reports its unit
as INVOCATIONS; the card now labels it credits. 'KIRO PRO+' maps to PRO_PLUS.
@caigee-cmd
caigee-cmd merged commit 73f7b27 into main Nov 20, 2026
6 checks passed
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