feat: show screen thumbnails in pod streams

This commit is contained in:
Yahya Alhinai
2026-06-28 05:33:00 +00:00
parent 1080bfd85f
commit c771e1594c
6 changed files with 39 additions and 8 deletions
+2 -1
View File
@@ -46,8 +46,9 @@ export class PodMan {
});
}
async onScreenFrame(engineerId: string, jpeg: Buffer): Promise<void> {
async onScreenFrame(engineerId: string, jpeg: Buffer, screenshotDataUrl?: string): Promise<void> {
const ctx = await analyzeFrame(engineerId, this.podId, jpeg);
if (screenshotDataUrl) ctx.screenshotDataUrl = screenshotDataUrl;
this.contexts.set(engineerId, ctx);
await recordObservation(ctx);