Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Thermo-nuclear reviewVerdict: the design is sound (informational primary + one transient
Noted, not changing:
|
|
Addressed the thermo-nuclear review in "Address thermo review":
Validation (+1.98.0): |
CUA proofBuild commit: d337464 (PR head) plus uncommitted proof-only patches (not in the PR): (1) Commands:
Observation (cosmetic, not a defect of the PR's logic): in the detail row the value "Unavailable" and the hint text render adjacent with no separator ("Unavailable" immediately followed by "Check Usage Dashboard..."). Screenshots (local, not committed): |
Port re-review: z.ai unavailable quota instead of fabricated 0% (#696, GAP row 22 of 0.69.0)Re-checked the branch at the current head What I verified at the current head:
Result: no new findings. The port matches the upstream fail-closed quota semantics; the one cosmetic observation from the proof (value and hint text render adjacent with no separator in the detail row) is a rendering nit on main's detail-row pipeline, not a defect of this port. Files under the cap; no dependency, locale or bridge change. |
Summary
z.ai quota parsing no longer fabricates a 0% Coding Plan window when the response has no recognized limits.
limitsproduce an informational primary ("Unavailable", no bar) plus the detail row "Coding Plan usage: Unavailable / Check Usage Dashboard for complete plan usage."type, or a recognized entry that does not deserialize, fail with "Unsupported z.ai quota entry. Check Usage Dashboard for plan usage."; a missing/non-arraylimitsenvelope fails with "Unsupported z.ai quota format. Check Usage Dashboard for plan usage."Upstream reference
Sources/CodexBarCore/Resources/Plugins/zai.js(parseLimit, unavailable detail row),Tests/CodexBarTests/ZaiProviderTests.swiftfixtures,docs/zai.md.Ported / Deferred
ZaiProviderTestsshapes (FUTURE_LIMIT,FUTURE_POINTS_POOL, missing/null/numerictype,pointsPoolenvelope).tokens/mcplegacy types remain recognized limits.Validation
Toolchain
+1.98.0, E-core wrappers, slot-1.cargo fmt --all: cleancargo clippy --workspace --all-targets -- -D warnings: passcargo test -p codexbar zai -- --test-threads=4: 46 passed, 0 failedAffected areas
rust/src/providers/zai/docs/PROVIDERS.mdUI proof
Pending: coordinator will capture CUA proof on a fresh build.