Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(grok): queue follow-ups without interrupting tools #27025

ClosedSugamsss(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/27025/headopened View on GitHub

Showing 4 changed files with 78 additions and 9 deletions (loading 1).

x
0 of 4 viewed, 4 left
31 additions and 4 deletionsapps/server/src/orchestration-v2/CommandPolicy.test.tsModified
View file
@@ -16,6 +16,7 @@
import { CodexProviderCapabilitiesV2 } from "./Adapters/CodexAdapterV2.ts";
import { CursorProviderCapabilitiesV2 } from "@t3tools/provider-cursor/testing";
import * as CommandPolicy from "./CommandPolicy.ts";
+import { makeGrokAcpAdapterFlavor } from "@t3tools/provider-grok/testing";
​
const commandId = CommandId.make("command-policy-test");
const threadId = ThreadId.make("command-policy-thread");
@@ -164,9 +165,15 @@
});
​
-// regression: #26695 an interrupt-restart steer cancels Copilot's background agents
-it("queues a steer for a provider that cannot steer either way", () => {
- const projection = dispatchProjection(
+const grokCapabilities = makeGrokAcpAdapterFlavor(
+ { makeRuntime: () => Effect.never } as unknown as Parameters<typeof makeGrokAcpAdapterFlavor>[0],
+ "/home/ada",
+).capabilities;
+​
+// Interrupt-and-restart cancels running tools and native background agents.
+it.each([
+ [
+ "generic",
capabilities((current) => ({
...current,
turns: {
@@ -176,7 +183,10 @@