git-ai-review 2.2.0 → 2.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -68,7 +68,7 @@ Recommended: install multiple for resilient fallback behavior.
68
68
 
69
69
  When an API token env var is set, the network preflight check for that reviewer is skipped — this is useful in CI environments or when interactive OAuth login is not available.
70
70
 
71
- Default fallback chain: Codex → Copilot → Claude. If a provider was unavailable on the previous run, it is rotated to the end of the chain on the next attempt (state stored in `.git/ai-review-last-unavailable`, cleared on success). If all are unavailable, review fails.
71
+ Default fallback chain: Codex → Copilot → Claude. If a provider was unavailable on the previous run, it is rotated to the end of the chain on the next attempt (state stored in `.git/ai-review-last-unavailable`). The rotation persists until the unavailable provider is retried and found available again, preventing repeated preflight failures. If all are unavailable, review fails.
72
72
 
73
73
  When a reviewer is explicitly selected via `--claude`, `--codex`, or `--copilot`, the preflight check is skipped entirely — the CLI tool handles its own authentication.
74
74
 
File without changes
package/dist/review.js CHANGED
@@ -531,7 +531,7 @@ export async function runReview(cwd = process.cwd(), options = {}, deps = {}) {
531
531
  if (firstUnavailable) {
532
532
  writeLastUnavailable(cwd, firstUnavailable);
533
533
  }
534
- else {
534
+ else if (!lastUnavailable || !DEFAULT_FALLBACK_ORDER.includes(lastUnavailable) || results[lastUnavailable].available) {
535
535
  clearLastUnavailable(cwd);
536
536
  }
537
537
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "git-ai-review",
3
- "version": "2.2.0",
3
+ "version": "2.2.2",
4
4
  "description": "Review your git diff with local Codex CLI, Copilot CLI, or Claude CLI — run manually in one command or automatically as a git hook",
5
5
  "type": "module",
6
6
  "main": "dist/cli.js",