INNER CODE UNIT · TypeScript

cancelSecurityScan

openai/codex-security · plugins/codex-security/mcp-app/server.ts:1228

  const cancelSecurityScan = async (scanId: string, threadId?: string) => {
    const args = [
      "cancel-scan",
      "--scan-id",
      scanId,
      ...optionalArg("--thread-id", threadId),
    ];
    let workspace: Awaited<ReturnType<typeof runWorkbench>> | undefined;
    if (threadId && deepScanCoordinators.get(scanId)) {
      await deepScanStore.get(scanId, threadId);
    }
    const canceledLocally = await deepScanCoordinators.cancelAndWait(
      scanId,
      "user_canceled_scan",
      async () => {
        workspace = await runWorkbench(args);
      },
    );

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…