Skip to content

Commit 822d971

Browse files
committed
fix(server): fall back to Codex or Claude for review guides
1 parent bccbbb2 commit 822d971

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎apps/server/src/textGeneration/TextGeneration.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ const resolveInstance = (
6060
),
6161
);
6262

63+
// Review guides investigate the checkout read-only; the other drivers reject that request.
64+
const INVESTIGATING_DRIVERS = new Set(["codex", "claudeAgent"]);
65+
6366
/** @public */
6467
export const make = Effect.gen(function* () {
6568
const registry = yield* ProviderInstanceRegistry.ProviderInstanceRegistry;
@@ -110,6 +113,7 @@ export const make = Effect.gen(function* () {
110113
provider.auth.status !== "unauthenticated" &&
111114
isProviderAvailable(provider) &&
112115
isProviderTextGenerationCapable(provider) &&
116+
(operation !== "generateReviewGuide" || INVESTIGATING_DRIVERS.has(driver)) &&
113117
!exhaustedUsageWindow(provider, now, defaultTextGenerationModel(driver))
114118
);
115119
},

0 commit comments

Comments
 (0)