The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 22, 23:15 UTC
fix(provider-grok): give ACP initialize enough time to answer (#18771)
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Maxime Beauchamp committed
Oct 20, 2026 at 00:14 UTC
c632d7e96bd8bc8a808d76c3f766809c7730a765
1 file changed
+4
-1
packages/provider-grok/src/server/status.ts
+4
-1
@@ -59,7 +59,10 @@ const EMPTY_CAPABILITIES: ModelCapabilities = createModelCapabilities({
59
});
60
61
const VERSION_PROBE_TIMEOUT_MS = 4_000;
62
-const GROK_ACP_INITIALIZE_TIMEOUT_MS = 8_000;
62
+// Grok writes the initialize result only after startup work (settings,
63
+// skill discovery, file watching). From a home directory that work measured
64
+// 9-14s on CLI 1.0.52, so an 8s cap records a healthy CLI as a failed probe.
65
+const GROK_ACP_INITIALIZE_TIMEOUT_MS = 20_000;
66
const GROK_API_KEY_ENV = "XAI_API_KEY";
67
68
const GROK_BUILT_IN_MODELS: ReadonlyArray<ServerProviderModel> = [