Skip to content

Fix MiniMax usage display for active quota rows#112

Merged
kargnas merged 3 commits intomainfrom
codex-minimax-percent-display-fix
Mar 28, 2026
Merged

Fix MiniMax usage display for active quota rows#112
kargnas merged 3 commits intomainfrom
codex-minimax-percent-display-fix

Conversation

@kargnas
Copy link
Copy Markdown
Member

@kargnas kargnas commented Mar 28, 2026

Summary

  • show non-zero quota usage below 1%% as 1%% instead of 0%%
  • prefer the actively used MiniMax quota row over larger zero-usage rows when choosing the primary quota snapshot
  • apply the same formatter across menu, status bar, and CLI displays

Validation

  • xcodebuild test -project CopilotMonitor/CopilotMonitor.xcodeproj -scheme CopilotMonitor -destination 'platform=macOS' -only-testing:CopilotMonitorTests/MiniMaxProviderTests -only-testing:CopilotMonitorTests/ProviderUsageTests
  • xcodebuild build -project CopilotMonitor/CopilotMonitor.xcodeproj -scheme CopilotMonitor -configuration Debug -destination 'platform=macOS' -derivedDataPath /tmp/opencode-bar-codex-build
  • Runtime log: MiniMax Coding Plan usage fetched: model=MiniMax-M*, 5h=0.6888888888888889%%, weekly=0.7577777777777778%%
  • CLI output: MiniMax Coding Plan Quota-based 1%%,1%% 99/100 remaining

@kargnas kargnas force-pushed the codex-minimax-percent-display-fix branch from 743db7f to 1fdffeb Compare March 28, 2026 17:36
@kargnas kargnas merged commit 170e32f into main Mar 28, 2026
11 of 12 checks passed
@kargnas kargnas deleted the codex-minimax-percent-display-fix branch March 28, 2026 17:37
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