refactor(desktop): pass export task reader runner through a port (#11858)

Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
This commit is contained in:
RRFZandmorluto authored and GitHub committed 2026-11-18 19:31:12 -05:00
1 parent 0c83de1642
commit f192180fb5
8 files changed
+103 -9

No files matched your search

+5 -2
View File
@@ -29,7 +29,10 @@ import {
DESKTOP_CAPTURE_DEFAULTS,
type DesktopCaptureProgress,
} from "../domain/desktop/desktopCapture.js";
import { createDesktopCaptureProvider } from "../desktop/DesktopCaptureProvider.js";
import {
createDesktopCaptureProvider,
runDesktopTaskReader,
} from "../desktop/DesktopCaptureProvider.js";
import { SessionRequestQueue } from "../desktop/DesktopSessionRequests.js";
import { withCommandCancellation } from "./commandCancellation.js";
import { registerCliCommand } from "./commandRegistry.js";
@@ -407,7 +410,7 @@ const registerDesktopExportCommand = (
...withheldRequestOf(options),
viewPolicy: options.viewPolicy,
},
readers,
{ ...readers, taskReader: runDesktopTaskReader },
signal,
),
);