Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(grok): health check, model selection, and stop all work against the real CLI #9154

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 9 commits intomain fromrefs/pull/9154/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

Showing 14 changed files with 18 additions and 6 deletions (loading 13).

x
0 of 14 viewed, 14 left
18 additions and 6 deletionsapps/server/scripts/acp-mock-agent.tsModified
View file
@@ -293,13 +293,22 @@
​
+// Mirrors the real Grok ACP: it advertises versioned model ids, never the CLI's own
+// "grok-build" product name, and it rejects unknown ids in session/set_model.
const grokAcpModels: ReadonlyArray<AcpSchema.ModelInfo> = [
- modelId: "grok-build",
- name: "Grok Build",
- ...(initialGrokReasoningEffort
- ? { _meta: { reasoningEffort: initialGrokReasoningEffort } }
- : {}),
+ modelId: "grok-4.6",
+ name: "Grok 4.6",
+ _meta: {
+ totalContextTokens: 500_000,
+ supportsReasoningEffort: true,
+ reasoningEffort: initialGrokReasoningEffort ?? "high",
+ reasoningEfforts: [
+ { id: "xhigh", value: "xhigh", label: "Extra High Effort", default: false },
+ { id: "high", value: "high", label: "High Effort", default: true },
+ { id: "low", value: "low", label: "Low Effort", default: false },
+ ],
+ },
{ modelId: "grok-mock-alt", name: "Grok Mock Alt" },
@@ -307,7 +316,7 @@