d3ro-voice/apps/desktop/tests/main/windows
Yun Chan 03cd8bf890 feat(desktop): screen text capture (OCR) overlay with selectable text
A rebindable screen-ocr action (default Ctrl+Alt+O) freezes the monitor under the cursor and
covers it with a focusable overlay. Text is selected by flow drag, rectangle drag, double/triple
click, Shift+click or Ctrl+A, then copied, saved as PNG or searchable PDF, translated,
summarized, read aloud, opened as a link or searched.

- Selection, text assembly and the PDF document are pure functions in @d3ro/core/screen-ocr,
  shared by the main process and the overlay.
- Recognition uses Windows.Media.Ocr through powershell.exe -EncodedCommand with 2x upscaling;
  the capture reaches disk only as a temp PNG that is removed right after recognition.
- Capture uses GDI BitBlt for the target monitor (39 ms) because desktopCapturer captured all
  three monitors and took 2.9 s when DXGI duplication timed out.
- The accelerator is reserved only where the feature is available, so macOS does not swallow
  the key for a feature it cannot run (fails closed with a message).

Map: CAP-17 [~], GAP-OCR-01 (live hotkey journey not yet driven in the running app),
GAP-OCR-02 (macOS engine, mixed-language accuracy).
2026-11-20 15:16:37 +09:00
..
main-window-close-redteam-r1-0.test.ts fix(window): don't steal focus when the app starts at login 2026-10-21 11:37:36 +09:00
popup-hide-show-race.test.ts fix(desktop): harden cancellation, dispose, and lifecycle races across main services 2026-11-14 15:26:18 +09:00
popup-navigation.test.ts
popup-redteam-r2-3.test.ts refactor(desktop): structure suggestion pipeline and restore test gates 2026-10-31 23:14:11 +09:00
popup-window-options.test.ts feat(desktop): screen text capture (OCR) overlay with selectable text 2026-11-20 15:16:37 +09:00
recording-tip-error-menu-redteam-r3-4.test.ts
recording-tip-presenter.test.ts
web-contents-hardening-redteam-r1-0.test.ts
web-contents-hardening-redteam-r2-9.test.ts