From b9abd3513c7ec65a91f0b3444399b0e4bda2f3c0 Mon Sep 17 00:00:00 2001 From: Dotta Date: Thu, 27 Aug 2026 09:38:06 -0500 Subject: [PATCH] test(interactions): preserve integration compatibility coverage --- .../question-response-delivery.test.ts | 32 ++++++++++++++++--- server/src/routes/issues.ts | 1 - 2 files changed, 28 insertions(+), 5 deletions(-) diff --git a/server/src/__tests__/question-response-delivery.test.ts b/server/src/__tests__/question-response-delivery.test.ts index de798d3b68f..2083847faff 100644 --- a/server/src/__tests__/question-response-delivery.test.ts +++ b/server/src/__tests__/question-response-delivery.test.ts @@ -28,6 +28,25 @@ import { NativeSessionSteeringError } from "../services/native-runtime/native-se const embeddedPostgresSupport = await getEmbeddedPostgresTestSupport(); const describeEmbeddedPostgres = embeddedPostgresSupport.supported ? describe : describe.skip; +const DIRECT_ADAPTER_TYPES = [ + "acpx_local", + "claude_local", + "codex_local", + "cursor_cloud", + "cursor", + "gemini_local", + "grok_local", + "hermes_gateway", + "hermes_local", + "kimi_local", + "openclaw_gateway", + "opencode_local", + "pi_local", + "process", + "http", + "external_test_adapter", +] as const; + describeEmbeddedPostgres("question response delivery", () => { let db!: ReturnType; let tempDb: Awaited> | null = null; @@ -53,7 +72,12 @@ describeEmbeddedPostgres("question response delivery", () => { await tempDb?.cleanup(); }); - async function seed(args: { sourceStatus?: string; successorStatus?: "queued" | "running" } = {}) { + async function seed(args: { + adapterType?: string; + runtimeMode?: "legacy" | "native"; + sourceStatus?: string; + successorStatus?: "queued" | "running"; + } = {}) { const companyId = randomUUID(); const agentId = randomUUID(); const goalId = randomUUID(); @@ -72,7 +96,7 @@ describeEmbeddedPostgres("question response delivery", () => { name: "Runner", role: "engineer", status: "active", - adapterType: "codex_local", + adapterType: args.adapterType ?? "codex_local", adapterConfig: {}, runtimeConfig: {}, permissions: {}, @@ -93,7 +117,7 @@ describeEmbeddedPostgres("question response delivery", () => { agentId, invocationSource: "manual", status: args.sourceStatus ?? "succeeded", - runtimeMode: "native", + runtimeMode: args.runtimeMode ?? "native", driverKind: "codex", contextSnapshot: { issueId }, ...(args.sourceStatus === "running" ? { startedAt: new Date() } : { finishedAt: new Date() }), @@ -105,7 +129,7 @@ describeEmbeddedPostgres("question response delivery", () => { agentId, invocationSource: "manual", status: args.successorStatus, - runtimeMode: "native", + runtimeMode: args.runtimeMode ?? "native", driverKind: "codex", contextSnapshot: { issueId }, ...(args.successorStatus === "running" ? { startedAt: new Date() } : {}), diff --git a/server/src/routes/issues.ts b/server/src/routes/issues.ts index 97597c16649..fee92f0d001 100644 --- a/server/src/routes/issues.ts +++ b/server/src/routes/issues.ts @@ -140,7 +140,6 @@ import { logActivity, publishActivity, projectService, - questionResponseDeliveryService, routineService, workProductService, } from "../services/index.js";