test: share runtime scan filters and cached test scans

This commit is contained in:
Peter Steinberger
2026-02-22 12:44:24 +01:00
parent 6dd36a6b77
commit 29cc7f431f
5 changed files with 80 additions and 103 deletions

View File

@@ -8,6 +8,7 @@ export type AgentWaitCall = { runId?: string; timeoutMs?: number };
type SessionsSpawnGatewayMockOptions = {
includeSessionsList?: boolean;
includeChatHistory?: boolean;
chatHistoryText?: string;
onAgentSubagentSpawn?: (params: unknown) => void;
onSessionsPatch?: (params: unknown) => void;
onSessionsDelete?: (params: unknown) => void;
@@ -137,7 +138,7 @@ export function setupSessionsSpawnGatewayMock(setupOpts: SessionsSpawnGatewayMoc
messages: [
{
role: "assistant",
content: [{ type: "text", text: "done" }],
content: [{ type: "text", text: setupOpts.chatHistoryText ?? "done" }],
},
],
};