prefer OCR for capture titles

This commit is contained in:
2026-06-24 08:55:19 -05:00
parent 1a1dbb846b
commit 375c14b028
3 changed files with 211 additions and 37 deletions
+6
View File
@@ -404,9 +404,15 @@ public static class Win32 {
this.collectForegroundWindowContext(),
this.ocrAroundClick({ image, size: image.getSize(), display: { bounds: { x: 0, y: 0, width: image.getSize().width, height: image.getSize().height } } }, clickPoint),
]);
const titleCandidate = buildCaptureTitle({
mode: step.kind === 'image' ? 'fullscreen' : 'window',
metadata,
ocrText: ocr.text,
});
captureContext = {
...metadata,
ocrText: ocr.text,
titleCandidate,
mode: step.kind === 'image' ? 'fullscreen' : 'content',
};
}