Before submitting
Area
apps/desktop
Steps to reproduce
- Open T3 Code Desktop Nightly and show a local web app in the browser preview (in this case
http://localhost:5173/).
- Start the element picker.
- Select an element in the page.
- Enter an annotation and click Attach.
Expected behavior
The annotation and a cropped screenshot of the selected element should be added to the composer.
Actual behavior
The structured annotation is added, but its screenshot is consistently dropped. T3 Code shows:
Could not capture the picked element
The annotation was kept without the screenshot.
The page remains loaded and interactive in the visible preview.
Impact
Major degradation or frequent failure
Version or commit
T3 Code Desktop 0.0.39-nightly.20260906.1293
Environment
macOS 27.0 (26A5425a), Apple Silicon arm64, visible embedded browser preview, local Vite page
Logs or stack traces
The desktop trace records PreviewManager.pickElement as successful even when the screenshot is dropped. Representative durations from repeated attempts:
PreviewManager.pickElement durationMs=5952.872833 exit=Success
PreviewManager.pickElement durationMs=5146.751917 exit=Success
PreviewManager.pickElement durationMs=6606.606333 exit=Success
These durations line up with ANNOTATION_SCREENSHOT_TIMEOUT = "5 seconds" in apps/desktop/src/preview/Manager.ts. The underlying webContents.capturePage() failure/timeout is collapsed into screenshotFailed: true, while the detached warning (preview annotation screenshot timed out) does not appear in desktop.trace.ndjson. As a result, the trace confirms the delayed pick but does not preserve the precise capture failure.
This started after a recent Nightly update. Commit 19c97ea56 added the five-second timeout and user-visible fallback for a wedged guest compositor, but the annotation screenshot now fails repeatedly in this otherwise responsive visible tab.
Screenshots, recordings, or supporting files
Selected element remains visible and responsive after the crop is dropped:
Error toast shown after clicking Attach:
Workaround
Take a separate screenshot and attach it manually. The structured element annotation still works without the crop.
Related issues
Before submitting
Area
apps/desktop
Steps to reproduce
http://localhost:5173/).Expected behavior
The annotation and a cropped screenshot of the selected element should be added to the composer.
Actual behavior
The structured annotation is added, but its screenshot is consistently dropped. T3 Code shows:
The page remains loaded and interactive in the visible preview.
Impact
Major degradation or frequent failure
Version or commit
T3 Code Desktop
0.0.39-nightly.20260906.1293Environment
macOS 27.0 (26A5425a), Apple Silicon arm64, visible embedded browser preview, local Vite page
Logs or stack traces
The desktop trace records
PreviewManager.pickElementas successful even when the screenshot is dropped. Representative durations from repeated attempts:These durations line up with
ANNOTATION_SCREENSHOT_TIMEOUT = "5 seconds"inapps/desktop/src/preview/Manager.ts. The underlyingwebContents.capturePage()failure/timeout is collapsed intoscreenshotFailed: true, while the detached warning (preview annotation screenshot timed out) does not appear indesktop.trace.ndjson. As a result, the trace confirms the delayed pick but does not preserve the precise capture failure.This started after a recent Nightly update. Commit
19c97ea56added the five-second timeout and user-visible fallback for a wedged guest compositor, but the annotation screenshot now fails repeatedly in this otherwise responsive visible tab.Screenshots, recordings, or supporting files
Selected element remains visible and responsive after the crop is dropped:
Error toast shown after clicking Attach:
Workaround
Take a separate screenshot and attach it manually. The structured element annotation still works without the crop.
Related issues