Skip to content

Add Claude extra usage breakdown in UI and models#72

Merged
kargnas merged 3 commits intomainfrom
codex/claude-extra-usage
Feb 6, 2026
Merged

Add Claude extra usage breakdown in UI and models#72
kargnas merged 3 commits intomainfrom
codex/claude-extra-usage

Conversation

@kargnas
Copy link
Member

@kargnas kargnas commented Feb 6, 2026

Summary

  • surface Claude extra usage metadata in the usage model, menu builder, and controller logic
  • show the extra monthly credit window alongside 5h/7d data and log the credit usage for debugging
  • refresh the API reference to describe the new fields and correct a typo

Testing

  • Not run (not requested)

@kargnas kargnas merged commit 880f9f5 into main Feb 6, 2026
11 checks passed
@kargnas kargnas deleted the codex/claude-extra-usage branch February 6, 2026 17:18
@op-gg-ai-devops
Copy link
Contributor

클로드 API에서 추가 요금제(Extra Usage) 정보를 파싱해 월간 한도, 사용량, 사용률을 상태바와 메뉴 UI에 표시하도록 기능을 추가했네.

  1. 로직 방어 처리: StatusBarController에서 limitUSD > 0 체크하고 백분율 계산한 건 기본은 지켰는데, 혹시라도 limitUSD가 아주 작은 수일 때 부동소수점 이슈 없는지 확인해 봐라.
  2. UI 하드코딩 주의: 금액 표시할 때 String(format: "Limit: $%.2f/m", limitUSD) 같이 달러($)를 그냥 박아놨던데, API가 무조건 USD만 뱉는다는 보장 없으면 나중에 통화 단위 바뀔 때 UI 대응 귀찮아질 거다.
  3. 코드 구조: ProviderMenuBuilder.swiftif문 도배되면서 슬슬 스파게티 냄새 나기 시작한다. 뷰 생성 로직 좀 더 깔끔하게 분리할 생각 없냐? 읽기 빡세다.

This is a short preview. For a detailed, line-by-line code review (including bug detection and security checks), please write a comment like @opgginc/op-gg-ai-devops please review this, or add @opgginc/op-gg-ai-devops team as a Reviewer(automatically review when a commit pushed to this PR).

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