Support CLIProxyAPI-Rust in the Model Usage widget - #8
Merged
Merged
Conversation
Vendor Model Usage 1.2.0 with automatic Go/Rust discovery, native Rust quota and activity support, and guards for unsupported credits and resets. Share Quickshell payload preparation across checkout and RPM builds, add parity coverage, and record source and live verification.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Model Usage widget previously queried Go-only management endpoints, so CLIProxyAPI-Rust returned a misleading management-key error. Vendor Model Usage 1.2.0 to detect both implementations automatically and show native Rust Claude/Codex quota windows and last-completed-request activity using the existing connection settings.
Rust readings preserve server observation times and mark stale or unavailable quota data honestly. Credits stay unknown and banked-reset actions are disabled because Rust does not expose those capabilities. Existing Go support remains covered by the upstream regression suite. Native nanosecond timestamps are normalized to microseconds for Python 3.10 compatibility.
Share Quickshell payload preparation between checkout and RPM packaging, with byte-for-byte Model Usage parity coverage. The pinned upstream commit
bc771a070ba1a18a3566a7006ecd1ba8c000713cis published onDigitalPals/omarchy-modelusagemain.Validation:
python3 -B tests/model-usage.py: passed; final upstream suite has 159 Python tests plus JavaScript assertions../tests/run: all 17 stages passed for the final correction; separate real-engine lifecycle smoke skipped with the managed shell active.python3 -B image/check-source: source and payload parity checks passed for the final correction.The live development RPM uses the initial adapter commit
d34db47on Python 3.14, which already supports Rust nanosecond timestamps. This is not a full ISO installation qualification. Research, API limitations, and the verification record are indocs/cliproxy-rust-model-usage-research.md.