docs(codex-cloud): formalize shell sanitation and guarded GitHub fallback - #1581
Conversation
This pull request has been ignored for the connected project Preview Branches by Supabase. |
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in:1 minute Your organization has reached its usage spending cap. Adjust your spending cap in the billing tab. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughCodex Cloud setup now installs profile-loading Node command shims. GitHub branch deletion gains a restricted PAT helper. Credential cleanup, setup validation, runtime checks, documentation, and tests cover the new controls. ChangesCodex Cloud controls
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant CloudSetup
participant ShimInstaller
participant RuntimeProfile
participant NodeBinaries
CloudSetup->>ShimInstaller: install command shims
ShimInstaller->>RuntimeProfile: load generated profile
ShimInstaller->>NodeBinaries: resolve node, npm, and npx with nvm
NodeBinaries-->>CloudSetup: executable shims available
sequenceDiagram
participant Operator
participant BranchDeletionHelper
participant GitHub
Operator->>BranchDeletionHelper: provide branch name and PAT
BranchDeletionHelper->>BranchDeletionHelper: validate mode, branch, origin, and credentials
BranchDeletionHelper->>GitHub: push branch deletion with temporary askpass
GitHub-->>BranchDeletionHelper: deletion result
Possibly related PRs
Suggested labels: 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
Comment |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit:e800a54afd
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
CI triageCI failed on this PR. Automated classification of the 2 failed job(s):
Compared with main CI run #7808 (cancelled). Classification is evidence routing, not permission to ignore a failure. Exact quarantined Playwright identities remain governed by the flake ledger. |
BigSimmo
commented
Aug 2, 2026
@cursoragent resolve failing CI and merge conflict please |
Merge conflict with What was wrong
What I did
Verification
Hosted CI is re-running on the new head ( |
Keep branch shim/PAT contract checks and main's managed shell-policy setup contract, and restore the temporaryDirectory / temporaryGitRepository test helper split from main.
Apply repository Prettier to the conflict-resolved check script and tests so pre-push and static-pr formatting gates stay green.
There was a problem hiding this comment.
Actionable comments posted: 2
🧹 Nitpick comments (1)
AGENTS.md (1)
869-926: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winKeep
AGENTS.mdas an orientation entry point.These lines duplicate lifecycle commands, acceptance procedures, credential rules, and PAT controls from
docs/codex-cloud.md. This creates two policy sources that can drift.Keep a short mandatory pointer to
docs/codex-cloud.mdhere. Keep the detailed Cloud contract in that document.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@AGENTS.md` around lines 869 - 926, Replace the detailed Codex Cloud lifecycle, validation, credential, provider-access, and GitHub/PAT guidance in AGENTS.md with a short mandatory pointer directing agents to docs/codex-cloud.md. Keep AGENTS.md as an orientation entry point and retain the full operational contract only in the referenced document.Source: Coding guidelines
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@AGENTS.md`:
- Around line 907-913: Update the GitHub connector guidance near the
authenticated connection description to require repository write access for
ordinary repository, branch, pull-request, review, and Actions work. Remove the
statement that the intended connection has administrator access, and explicitly
reserve administrator access for separately approved operations.
In `@scripts/delete-codex-cloud-branch-with-pat.sh`:
- Line 48: Update the PAT-bearing push command in the branch deletion script to
pass Git’s core.hooksPath configuration as /dev/null, preventing pre-push hooks
from receiving CODEX_CLOUD_GITHUB_PAT. Reflect this hooks-disabled requirement
in the static setup contract and the corresponding assertions in
tests/codex-cloud-setup.test.ts.
---
Nitpick comments:
In `@AGENTS.md`:
- Around line 869-926: Replace the detailed Codex Cloud lifecycle, validation,
credential, provider-access, and GitHub/PAT guidance in AGENTS.md with a short
mandatory pointer directing agents to docs/codex-cloud.md. Keep AGENTS.md as an
orientation entry point and retain the full operational contract only in the
referenced document.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 3c9257d1-9c52-4e5d-8c35-c12e07cbb57f
📒 Files selected for processing (11)
AGENTS.mdREADME.mddocs/README.mddocs/codex-cloud.mddocs/scripts-index.mddocs/testing.mdscripts/check-codex-cloud-setup.mjsscripts/delete-codex-cloud-branch-with-pat.shscripts/install-codex-cloud-command-shims.shscripts/setup-codex-cloud.shtests/codex-cloud-setup.test.ts
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
BigSimmo
commented
Aug 2, 2026
@copilot fix failing CI please as well as solve the auto fix failing CI as I thought I deleted the connector |
Uh oh!
There was an error while loading. Please reload this page.


Summary
node/npm/npxshim installer used by both Cloud lifecycle commandsSafety
Summary by CodeRabbit
New Features
node,npm, andnpxusage.Documentation
Bug Fixes
Tests