Skip to content

fix(desktop): avoid Windows capture stalls - #12

Open
SunkenInTime wants to merge 1 commit into
Bil0000:feat/window-capturefrom
SunkenInTime:t3code/build-install-pr-8103
Open

fix(desktop): avoid Windows capture stalls#12
SunkenInTime wants to merge 1 commit into
Bil0000:feat/window-capturefrom
SunkenInTime:t3code/build-install-pr-8103

Conversation

@SunkenInTime

Copy link
Copy Markdown

The Windows desktopCapturer path requests thumbnails for every visible source. On the affected machine, Chromium's Windows Graphics Capture backend repeatedly waited five seconds for an uncapturable source, delaying the handoff before the spring animation could begin.

Use xa11y's native region screenshot for direct Windows captures instead. The active window's DIP bounds and metadata remain authoritative, while macOS and Linux keep their existing capture paths.

Measured on Windows:

  • before: about 5.9s to visible feedback
  • cold after: 184.9ms
  • warm after: 168.3ms
  • no new WGC first-frame timeouts

Verification:

  • vp run --filter @t3tools/desktop typecheck
  • targeted vp lint
  • live cold/warm Paint captures with image, foreground handoff, spring motion, and attachment verified

The focused unit test is included. The local Windows vp test runner currently exits before suite registration with Vitest failed to find the current suite; CI should provide the authoritative test result.

Generated with Codex (GPT-5.6-sol).

@github-actions github-actions Bot added vouch:unvouched PR author is not yet trusted in the VOUCHED list. size:M labels Aug 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M vouch:unvouched PR author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant