Skip to content

Conversation

@SalimBinYousuf1
Copy link

This PR addresses several critical issues reported in the repository:

  1. Cursor (The plan "Cursor Pro_Student" displays the wrong limit #278): Fixed plan limit detection for plans like 'Cursor Pro_Student' which were incorrectly showing a 000 limit instead of 0.
  2. MiniMax (can't fetch minimax usage #276): Updated the usage fetcher to use region-specific API endpoints, fixing usage fetch failures for global region users.
  3. OpenCode (OpenCode provider returns HTTP 500 #273): Improved error message parsing to capture more details from HTTP 500 errors, helping diagnose provider setup issues.

These changes improve the reliability and accuracy of usage tracking for these providers.

…ders

- Fix Cursor plan limit detection for Pro_Student plans
- Use region-specific API endpoint for MiniMax usage fetch
- Improve OpenCode error message parsing for HTTP 500 errors
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f0674f2ae0

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

}

var request = URLRequest(url: self.apiRemainsURL)
var request = URLRequest(url: region.remainsURL)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Use API token endpoint, not platform remains URL

In MiniMaxUsageFetcher.fetchUsage(apiToken:) the request now targets region.remainsURL, which resolves to the platform host (platform.minimax.io/platform.minimaxi.com) and the cookie “openplatform” remains path. The MiniMax docs in this repo specify the API token endpoint as https://api.minimax.io/v1/coding_plan/remains (different host and path) and reserve the platform host for cookie-based fetches (GET {host}/v1/api/openplatform/coding_plan/remains). This change will cause API-token-only users (especially global region) to hit the cookie endpoint and likely receive 404/401 responses, so usage fetch will fail for the API-token flow.

Useful? React with 👍 / 👎.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@tonyshield
Copy link

I need this PR merged, can we prioritize this?

@tonyshield
Copy link

@steipete Thank you for fix this!

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.

2 participants