Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(preview): keep snapshots slim unless the agent asks #7302

Closedgb1095(GitHub profile, opens in a new tab)wants to merge 15 commits intomain fromrefs/pull/7302/headopened View on GitHub

Showing 9 changed files with 4 additions and 3 deletions (loading 8).

x
0 of 9 viewed, 9 left
4 additions and 3 deletionsapps/desktop/src/ipc/methods/preview.tsModified
View file
@@ -2,6 +2,7 @@
DesktopPreviewAnnotationThemeInputSchema,
DesktopPreviewArtifactInputSchema,
DesktopPreviewAutomationClickInputSchema,
+ DesktopPreviewAutomationSnapshotInputSchema,
DesktopPreviewAutomationEvaluateInputSchema,
DesktopPreviewAutomationPressInputSchema,
DesktopPreviewAutomationScrollInputSchema,
@@ -389,11 +390,11 @@
​
export const automationSnapshot = DesktopIpc.makeIpcMethod({
channel: IpcChannels.PREVIEW_AUTOMATION_SNAPSHOT_CHANNEL,
- payload: DesktopPreviewTabInputSchema,
+ payload: DesktopPreviewAutomationSnapshotInputSchema,
result: PreviewAutomationSnapshot,
- handler: Effect.fn("desktop.ipc.preview.automationSnapshot")(function* ({ tabId }) {
+ handler: Effect.fn("desktop.ipc.preview.automationSnapshot")(function* ({ tabId, include }) {
const manager = yield* PreviewManager.PreviewManager;
- return yield* manager.automationSnapshot(tabId);
+ return yield* manager.automationSnapshot(tabId, include ?? []);
}),
});
​
apps/desktop/src/preview/Manager.test.tsModified
View file
Loading the diff
apps/desktop/src/preview/Manager.tsModified
View file