Fix z.ai MCP monthly window label#904
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2816e82bf1
ℹ️ About Codex in GitHub
Your team has set up Codex to 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 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if limit.type == .timeLimit { | ||
| return "Monthly" |
There was a problem hiding this comment.
Keep non-MCP time-window labels
When a z.ai TIME_LIMIT is anything other than the MCP 1-minute marker, this now still reports Monthly; for example the existing maps usage snapshot windows test builds a 30-day TIME_LIMIT and expects 30 days window, so the suite will fail and real non-1-minute time limits lose their accurate label. Gate the override to the specific MCP/monthly case instead of applying it to every .timeLimit.
Useful? React with 👍 / 👎.
96bb50d to
33669bc
Compare
33669bc to
3fae9ce
Compare
Summary
TIME_LIMITusage as Monthly instead of the raw1 minute windowAPI labelFixes #115.
Validation
git diff --check