Fix z.ai BigModel CN quota parsing#1862
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 3, 2026, 6:14 PM ET / 22:14 UTC. Summary Reproducibility: yes. Current main requires Review metrics: 2 noteworthy metrics.
Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land the narrow optional- Do we have a high-confidence way to reproduce the issue? Yes. Current main requires Is this the best way to solve the issue? Yes. The PR fixes the narrow decoding gap, preserves API error details when available, and pins the exact BigModel CN response shape in parser coverage. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a310c42774ce. Label changesLabel justifications:
Evidence reviewedAcceptance criteria:
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Landed as Maintainer proof on exact head
The successful BigModel CN payload is covered by a deterministic fixture matching the reported response shape; no live credentials or Keychain access were needed. |
Summary
msgfieldCloses #1855.
Runtime proof
Ran the freshly built CLI through the full API request and rendering path against the exact redacted issue payload served by an HTTPS fixture endpoint. The request used a dummy token; no real account, browser data, or Keychain entry was accessed.
This verifies the successful response without
msgreaches the CLI and preserves all three reported usage lanes.Testing
swift test --disable-sandbox --filter ZaiProviderTests(39 tests passed)make checkcompleted all repository checks and reported 0 SwiftFormat/SwiftLint violations; the managed sandbox denied SwiftLint's final cache writemake testwas attempted with writable test caches; it reached unrelated baseline failures inKeychainNoUIQueryTestswhereLAContext.interactionNotAllowedremains false on this hostNo real provider account, browser-cookie, or Keychain probe was run.