feat(selfhost): add AI provider fallback chains - #3058
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
gittensory-ui | 215ab47 | Commit Preview URL Branch Preview URL |
Jul 04 2026, 06:36 PM |
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-04 18:38:40 UTC
⏸️ Suggested Action - Manual Review
Review summary Nits — 6 non-blocking
Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3058 +/- ##
==========================================
- Coverage 94.71% 94.71% -0.01%
==========================================
Files 269 269
Lines 29544 29558 +14
Branches 10773 10781 +8
==========================================
+ Hits 27984 27997 +13
Misses 916 916
- Partials 644 645 +1
🚀 New features to boost your workflow:
|
ui:lint failed with 5 prettier/prettier errors in the two self-hosting docs routes touched by the fallback-chain change; re-wrap the affected paragraphs to match the repo's line-width formatting, no wording change.
06c52f8 to
215ab47
Compare
apps/gittensory-ui/src/lib/selfhost-env-reference.ts drifted again after #3058 (AI provider fallback chains) shifted line numbers in src/selfhost/ai.ts without regenerating the reference, breaking npm run selfhost:env-reference:check on a clean main checkout. Pure regeneration via npm run selfhost:env-reference, no manual edits.
Summary
AI_PROVIDERcomma lists resolve to one primary reviewer plus a fallback by defaultAI_DUAL_REVIEW=1mediumfor subscription-token conservationWhy
Validation
npx vitest run test/unit/selfhost-ai.test.ts test/unit/ai-review.test.ts test/unit/ai-review-advisory.test.ts test/unit/ai-review-cache-input.test.ts test/unit/selfhost-grafana-dashboard.test.ts test/unit/selfhost-env-reference-script.test.ts test/unit/selfhost-config-examples.test.tsnpm run typechecknpm run selfhost:validate-observabilitynpm run selfhost:env-reference:checkgit diff --checknpm run test:coverageNotes
AI_PROVIDER=codex,claude-code.AI_DUAL_REVIEW=1only when you intentionally want both providers to spend tokens on the same PR.