Conversation
38a5195 to
2a37a49
Compare
|
Restacked the single ZCode usage-meter commit onto the refreshed first-class ZCode head ( Fresh validation:
Keeping this Draft until #13965 lands, since it intentionally depends on the first-class ZCode provider identity. |
2a37a49 to
0e9dd41
Compare
|
Restacked the single ZCode usage-meter commit onto the refreshed #13965 head and migrated its tests to the current split service/UI test layout. Validation: 151 affected tests passed; Node and Web typechecks passed; changed-file oxlint and diff check passed. Keeping this Draft until #13965 lands. Fork workflow runs are awaiting maintainer approval. |
bec3e71 to
6c8e1ee
Compare
Adds a ZCode provider meter alongside Claude, Codex, Gemini, Grok, and the other usage providers: - New bounded fetcher reads the Coding Plan credential from the ZCode CLI config and calls the quota endpoint on the allowlisted official hosts only, with no shell and a 15-second timeout. - Wires zcode into the shared rate-limit state, polling/stale handling, status bar, provider menu, tooltip, settings search, and the one-shot default-on status item migration. - Uses Z as the compact narrow-layout badge. - Status item visibility is detection-gated on the ZCode CLI, which this stacks on top of the ZCode first-class agent PR.
6c8e1ee to
e01427b
Compare
|
Restacked onto the refreshed #13965 head and current |
|
Leaving this open — usage tracking did not ship with #22464, so the need is still live. #21757 and #18506 are both still open too. One development worth your time before you rebase anything: Z.ai open-sourcing the CLI changed the options here. ZCode records usage locally, in with That matters because the main hesitation on #21757 was exactly the thing this PR does — calling an endpoint that isn't documented for third-party callers. A local provider (same shape as the Muse Code one in #22379) sidesteps it: no API key, no credential read, works offline. The honest tradeoff: local records give you consumption, not remaining quota. If the status-bar meter is the point, that still needs an endpoint, and @ArtemBozhenko's detail on #18506 — key in This branch is stacked on #13965, which I've closed as superseded, so it won't rebase cleanly as-is. A fresh PR against |
|
Thanks for the detailed guidance. I replaced this stacked draft with #23520, based directly on current The new draft keeps the quota meter because local Closing this superseded branch so discussion can continue on #23520. |
Summary
Adds a ZCode Coding Plan usage meter to Orca's existing provider usage UI.
This is intentionally independent from ZCode launch and orchestration behavior: it reads the user's local ZCode credential, fetches quota from an allowlisted official endpoint, and publishes normalized rate-limit state.
Dependency
zcodeprovider identity.What Changed
Current Coding Plan Promotion
ZCode currently advertises a promotional 0.67 usage coefficient for eligible Coding Plan calls, equivalent to roughly 1.5× effective quota. This PR does not apply that coefficient itself; it displays the usage percentages reported by the provider, avoiding double adjustment. Eligibility and duration remain provider-controlled.
Visual Proof
Validation
git diff --checkpass.Security
AI Disclosure
Implemented with OpenAI Codex and validated against current Orca
main.