Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Train E2: drop issue numbers from Cursor and Grok comments and a test title

milind-soni433ef803d19a
diff --git a/server/drivers/acp/cursor.test.ts b/server/drivers/acp/cursor.test.ts
index 706144e74c..6c62192ce7 100644
--- a/server/drivers/acp/cursor.test.ts
+++ b/server/drivers/acp/cursor.test.ts
@@ -1162,7 +1162,7 @@ describe("cursor ACP model namespace (NS: set_model wiring)", () => {
});
describe("fetchCursorModels", () => {
- it("gives the discovery session its own request budget, above the shared 8s default (#4371)", async () => {
+ it("gives the discovery session its own request budget, above the shared 8s default", async () => {
await fetchCursorModels("cursor-agent-does-not-exist", {});
const options = vi.mocked(discoverAcpModels).mock.calls.at(-1)?.[3] as { requestTimeoutMs?: number } | undefined;
expect(options?.requestTimeoutMs).toBeGreaterThanOrEqual(15_000);
diff --git a/server/drivers/acp/cursor.ts b/server/drivers/acp/cursor.ts
index 5a6d6125d1..0daf192d13 100644
--- a/server/drivers/acp/cursor.ts
+++ b/server/drivers/acp/cursor.ts
@@ -363,8 +363,8 @@ export async function fetchCursorModels(
env: Record<string, string | undefined>,
run: typeof execCli = execCli,
): Promise<ModelCatalog> {
- // cursor-agent's cold start can take longer than the shared 8s request budget before session/new answers
- // (#4371): give it its own, so a slow but working session does not collapse to the static list for six hours.
+ // cursor-agent's cold start can take longer than the shared 8s request budget before session/new answers:
+ // give it its own, so a slow but working session does not collapse to the static list for six hours.
const fromSession = await discoverAcpModels(env, cli, ["acp"], { variants: false, requestTimeoutMs: 20_000, clientCapabilitiesMeta: CURSOR_CLIENT_META })
.then((catalog) => cursorCatalogFromSession(catalog.options), () => null);
if (fromSession) return fromSession;
diff --git a/server/drivers/acp/grok-signals.test.ts b/server/drivers/acp/grok-signals.test.ts
index 66374fec3b..b066836687 100644
--- a/server/drivers/acp/grok-signals.test.ts
+++ b/server/drivers/acp/grok-signals.test.ts
@@ -20,7 +20,7 @@ import { grokReportedFailure } from "./grok-signals.ts";
const FAKE_CLI = join(dirname(fileURLToPath(import.meta.url)), "../../testing/fake-acp-cli.ts");
const TOKIO = "grok: failed to start tokio runtime: blocking pool pre-warm stalled after 14 of 16 threads";
-// A provider the Grok CLI serves (an OpenAI-compatible router) throttling for a moment, as issue #7635 read it.
+// A provider the Grok CLI serves (an OpenAI-compatible router) throttling for a moment.
const ROUTER_THROTTLE = "Rate limited: stream error (rate_limit_error): openai/gpt-5.2: rate limit - Semaphore timeout after 2000ms, waiting before retry";
const scratches: string[] = [];