Skip to content

fix(preview): tolerate invalid desktop window bounds - #968

Merged
nixuuu merged 1 commit into
devfrom
fix/agent-desktop-preview
Nov 18, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/agent-desktop-preview

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 18, 2026

Copy link
Copy Markdown
Member

Change

Agent Desktop can report zero-width or zero-height windows in its inventory. The worker previously rejected the entire response, preventing the desktop and mobile clients from previewing other windows.

Treat invalid bounds as missing coordinates for the affected window. Continue capturing by window ID, using screenshot metadata for logical dimensions when needed. Pointer input still requires valid global coordinates.

Verification

  • Reproduced the reported validation error with the regression test before the fix.
  • Passed 16 worker preview adapter tests with check:tmp, the worker type check, and lint and formatting on the edited TypeScript files.
  • Verified in an isolated Chromium run that the real worker preview code, WorkerLink, gateway and SSE helper deliver the first Desktop frame and continue after the paint acknowledgement with a simulated CLI.
  • Live verification on macOS and the full CI gate remain pending.

Fixes: #846

@nixuuu
nixuuu enabled auto-merge (squash) November 18, 2026 14:55
@nixuuu
nixuuu merged commit 907826e into dev Nov 18, 2026
15 checks passed
@nixuuu
nixuuu deleted the fix/agent-desktop-preview branch November 18, 2026 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant