The best way to control Claude Code, Codex and more from any computer or phone
fix(grok): stop rechecking a healthy Grok CLI every refresh interval (#39623)
Julius Marminge committed
Nov 20, 2026 at 02:06 UTC
0a1773aec966dce7c2ec5635d71cebf3cb1daec3
1 file changed
+3
packages/provider-grok/src/server/driver.ts
+3
@@ -238,6 +238,9 @@ export const GrokDriver: ProviderDriver<GrokSettings, GrokDriverEnv, Path.Path>
238
getSettings: snapshotSettings.getSettings,
239
streamSettings: snapshotSettings.streamSettings,
240
haveSettingsChanged: haveProviderSnapshotSettingsChanged,
241
+ // Each check starts the Grok CLI four times. A ready instance is rechecked on refresh or a
242
+ // settings change; only an unhealthy one keeps polling until it recovers.
243
+ refreshOnInterval: (snapshot) => snapshot.status !== "ready",
244
initialSnapshot: (settings) =>
245
buildInitialGrokProviderSnapshot(settings.provider).pipe(Effect.map(stampIdentity)),
246
checkProvider,