Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(desktop): capture fresh agent preview frames in background tabs #21534

Openjuliusmarmingewants to merge 4 commits intomain fromrefs/pull/21534/headopened View on GitHub

Showing 11 changed files with 15 additions and 0 deletions (loading 8).

x
0 of 11 viewed, 11 left
12 additions and 0 deletionsapps/desktop/src/ipc/methods/preview.tsModified
View file
@@ -7,6 +7,7 @@
DesktopPreviewRecordingArtifactSchema,
DesktopPreviewRecordingSaveInputSchema,
DesktopPreviewRegisterWebviewInputSchema,
+ DesktopPreviewCaptureReadyInputSchema,
DesktopPreviewScreenshotArtifactSchema,
DesktopPreviewSetAudioMutedInputSchema,
DesktopPreviewSetColorSchemeInputSchema,
@@ -104,6 +105,16 @@
}),
});
​
+export const captureReady = DesktopIpc.makeIpcMethod({
+ channel: IpcChannels.PREVIEW_CAPTURE_READY_CHANNEL,
+ payload: DesktopPreviewCaptureReadyInputSchema,
+ result: Schema.Void,
+ handler: Effect.fn("desktop.ipc.preview.captureReady")(function* (input) {
+ const manager = yield* PreviewManager.PreviewManager;
+ yield* manager.captureReady(input.tabId, input.webContentsId, input.requestId);
+ }),
+});
+​
export const navigate = DesktopIpc.makeIpcMethod({
channel: IpcChannels.PREVIEW_NAVIGATE_CHANNEL,
payload: DesktopPreviewNavigateInputSchema,
@@ -432,6 +443,7 @@
createTab,
closeTab,