Repository navigation
feat(ui): vendor-neutral managed AI LLM messaging, memory benefits, and live quota visibility - #355
Open
Coding-Dev-Tools wants to merge 6 commits into
Open
Coding-Dev-Tools wants to merge 6 commits into
Coding-Dev-Tools wants to merge 6 commits into
Conversation
…nd live quota visibility Remove vendor-specific OpenRouter references from included Pro/Team managed AI LLM copy across the dashboard, entitlement contract, README, and docs while keeping BYOK OpenRouter support intact. Add read-only GET /api/v2/cloud/allowances with a 60s cache, zero-network offline fallback, and vendor sanitization, and wire live daily AI LLM (100/day) and Jev (250/day) allowance visibility plus memory benefits into Manage Plans and Settings.
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
… offline evidence Scope cloud allowance caching by normalized origin, org, plan, access state, and non-secret session digest; clear cache on denial/refresh; enforce pre/post TOCTOU control-origin validation, per-endpoint deadline bounds, single-flight coalescing, 402 billing-denial propagation, non-caching of transient failures, strict JSON parsing, next_release_at fallback, Cache-Control: no-store, and inline refresh error notes; refresh immutable offline benchmark evidence and charts.
Owner
Author
|
2-agent independent review loop completed at 6cbd871:
|
Three runtime defects in the allowances surface: * `_propagate_cloud_billing_denial()` duplicated the authoritative denial path without calling `_mark_authoritative_denial()`. On read-only state dirs, direct-token deployments, and empty-cache sessions where the persisted writes are no-ops, the in-process guard was never set, so `_plan_entitlement()` kept reporting paid access. Drop the duplicate and call `_record_authoritative_denial()`. * `get_cloud_allowances()` mapped revoked (401/403) sessions to "offline", telling a signed-out user the control plane was merely unreachable while `/api/license` still advertised paid access. Treat 401/402/403 as authoritative and return "unauthorized". * `#cloud-allowances-refresh` stayed disabled forever when a refresh was superseded by tab or workspace navigation, because `finally` only re-enabled the button for the still-current request. Track in-flight refreshes with a counter so it always re-enables. Also catch `RecursionError` from untrusted usage JSON, matching the other untrusted-JSON boundaries, so deeply nested bodies return "unavailable" instead of an unhandled HTTP 500.
`.git-commit-msg.tmp` was picked up by `git add -A` in the previous commit. It is a local scratch file and does not belong in the tree.
`tests/test_benchmark_evidence.py` hashes every `.py` under `engraphis/` and `eval/`, so the v2_api.py change invalidated the committed registry artifact and failed the whole Python matrix. Export a new immutable artifact and repoint the test constants, README prefix, BENCHMARKS.md name/sha, and the fixture-suite digest. The three offline fixture run results are byte-identical to the previous artifact; only the `engraphis/routes/v2_api.py` entry in the suite manifest changed, so no published number moves. The SVGs and PNGs were regenerated from the new artifact so their embedded provenance matches.
… endings The previous commit's byte-substitution was done through a text rewrite that normalized CRLF to LF, so BENCHMARKS.md and README.md showed 758 changed lines for a 7-token edit. Redo the substitution on raw bytes so the diff is only the artifact name, SHA, suite digest, and the two reproduction commands that name the artifact.
This branch has not been deployed
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.
Summary
Verification
uff check, and
ode --check all passed.