Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(grok): surface per-model reasoning effort in the composer #5403

Closedahmed-besic(GitHub profile, opens in a new tab)wants to merge 3 commits intomain fromrefs/pull/5403/headopened View on GitHub

Showing 8 changed files with 161 additions and 1 deletion (loading 5).

x
0 of 8 viewed, 8 left
54 additions and 0 deletionsapps/server/src/provider/Layers/GrokAdapter.test.tsModified
View file
@@ -270,6 +270,60 @@
}),
​
+ it.effect("does not set reasoning effort while steering an active prompt", () =>
+ Effect.gen(function* () {
+ const threadId = ThreadId.make("grok-steer-keeps-active-effort");
+ const tempDir = yield* Effect.promise(() =>
+ NodeFSP.mkdtemp(NodePath.join(NodeOS.tmpdir(), "grok-acp-steer-effort-")),
+ );
+ const requestLogPath = NodePath.join(tempDir, "requests.ndjson");
+ const wrapperPath = yield* Effect.promise(() =>
+ makeMockGrokWrapper({
+ T3_ACP_PROMPT_DELAY_MS: "250",
+ T3_ACP_REQUEST_LOG_PATH: requestLogPath,
+ }),
+ );
+ const adapter = yield* makeTestAdapter(wrapperPath);
+ const modelSelection = {
+ instanceId: ProviderInstanceId.make("grok"),
+ model: "grok-build",
+ options: [{ id: "reasoningEffort", value: "high" }],
+ };
+​
+ yield* adapter.startSession({
+ threadId,
+ provider: ProviderDriverKind.make("grok"),
+ cwd: process.cwd(),
+ runtimeMode: "full-access",
+ });