From e9a64bbd9766dfc0ccdf2439f7a52ca0b52018fe Mon Sep 17 00:00:00 2001 From: "coderabbitai[bot]" <136622811+coderabbitai[bot]@users.noreply.github.com> Date: Tue, 28 Jul 2026 23:57:23 +0000 Subject: [PATCH] fix: avoid per-review auth preflight in Codex plugin --- plugins/coderabbit/.codex-plugin/plugin.json | 2 +- .../coderabbit/skills/coderabbit-review/SKILL.md | 16 ++++------------ 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/plugins/coderabbit/.codex-plugin/plugin.json b/plugins/coderabbit/.codex-plugin/plugin.json index 90b90c564..25784c8ae 100644 --- a/plugins/coderabbit/.codex-plugin/plugin.json +++ b/plugins/coderabbit/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "coderabbit", - "version": "1.1.1", + "version": "1.1.2", "description": "AI-powered code review in Codex, powered by CodeRabbit.", "author": { "name": "CodeRabbit AI", diff --git a/plugins/coderabbit/skills/coderabbit-review/SKILL.md b/plugins/coderabbit/skills/coderabbit-review/SKILL.md index eac606bc7..022645213 100644 --- a/plugins/coderabbit/skills/coderabbit-review/SKILL.md +++ b/plugins/coderabbit/skills/coderabbit-review/SKILL.md @@ -24,21 +24,13 @@ If the command is not found or reports that CodeRabbit is not installed, do not curl -fsSL https://cli.coderabbit.ai/install.sh | sh ``` -Then re-run `coderabbit --version` to confirm the install succeeded before continuing. After a fresh install, proceed to the authentication step — the user will need to log in. +Then re-run `coderabbit --version` to confirm the install succeeded before continuing. -3. Verify authentication in agent mode: +3. Do not proactively check authentication. Start the requested review directly. The CLI reuses persisted credentials, refreshes expired access tokens, and resolves the current repository to the correct CodeRabbit organization. Changing repositories is not a reason to sign in again. -```bash -coderabbit auth status --agent -``` - -If auth is missing or the CLI reports the user is not authenticated (including right after a fresh install), do not stop at the error. Initiate the login flow: - -```bash -coderabbit auth login --agent -``` +Only if the review returns an explicit authentication error, run `coderabbit auth status --agent` to confirm the failure. If authentication is missing, initiate `coderabbit auth login --agent`, wait for it to succeed, and retry the same review command once. -Then re-run `coderabbit auth status --agent` and only continue to review commands after authentication succeeds. +If browser authentication cannot run in a non-interactive or ephemeral environment, tell the user to configure an Agentic API key in that environment with `coderabbit auth login --api-key `. Do not repeatedly start browser login or request separate authentication for each repository. ## Review Commands