Repository navigation
fix: let external Harnesses submit when Codex usage is exhausted - #378
Merged
Merged
Conversation
Desktop disables Composer submission through two Account-wide selectors (ChatGPT rate limit and reserve hardBlocked) regardless of the selected Harness. For a Composer routed to a ready external Harness, project false for only that Composer's two gate subscriptions and keep the native submit path. Accounts, atoms and query data are never written; unverifiable contracts keep the native restriction and show a hover hint. Also restore the Send button from the latest native props after an Agent switch instead of a stale pre-switch flag. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Add a read-only codex-usage-gate surface to npm run audit:codex-desktop that counts the Composer owner, reserve gate and Account gate per editable Composer. A dormant Account gate (API-key sign-in or loading) is reported as unverified. Reviewed baselines that predate a surface are accepted and compared as having no baseline for it. Point the update-impact skill at the new surface. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis 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. |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configurationConfiguration used: Repository: BytePioneer-AI/codex-host/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (16)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
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.
Purpose
When the ChatGPT-signed-in Codex subscription is out of usage, Desktop disables Composer submission even when an external Harness (Pi, Claude Code, …) is selected. The two gates — the Account rate-limit selector and the reserve
hardBlockedselector — are Account-wide Renderer pre-checks, only apply to ChatGPT sign-in (API-key sign-in is unaffected), and are not a protocol limit: externalturn/startis routed by the Host and never reaches the official backend.This is a slimmer replacement for #377.
Changes
renderer-codex-usage-gate.ts: for a Composer routed to a ready external Harness, projectsfalsefor only that Composer's two gate subscriptions and keeps the native submit path. Gates are identified by the fields their selectors read, not minified names or hook positions. Accounts, atoms and query data are never written; the Codex path, other Composers and all other native blockers are unchanged. Unverifiable contracts keep the native restriction and show a hover hint on the Agent control.renderComposerAgentControlreturns its existing external-submission readiness, which drives the gate; Enter/submit remain guarded byprepareComposer.npm run audit:codex-desktopgains a read-onlycodex-usage-gatesurface (owner / reserve / Account gate counts). Reviewed baselines that predate a surface are still accepted and compare it as un-baselined.codex-accounts.md, upgrade diagnosis playbook, audit README, and thecodexhost-update-impact-auditskill.Validation
npm run typecheck, eslint,tools/check-boundaries.mjs, prettier,git diff --checkvitestforrenderer-extension,desktop-controland the audit tool: 65 files / 646 testsnpm start): both gates bound in the Pi Composer; Send enabled with text; no unsupported hint. The audit bundle run through the report builder against the 26.831 baseline reportscodex-usage-gate1/1/1no-impact.audit:codex-desktopCLI (the main-process Inspector was not open).🤖 Generated with Claude Code