Skip to content

Expand visual context screenshot crop#104

Merged
FuJacob merged 1 commit into
mainfrom
codex/expand-screenshot-context
May 15, 2026
Merged

Expand visual context screenshot crop#104
FuJacob merged 1 commit into
mainfrom
codex/expand-screenshot-context

Conversation

@FuJacob

@FuJacob FuJacob commented May 15, 2026

Copy link
Copy Markdown
Owner

Summary

Expands the screenshot crop used for visual prompt context so OCR sees more surrounding content above and beside the focused text field.

The crop now adds 100 display points of horizontal padding on both sides and doubles the vertical context above the input from 300 to 600 display points, while still clamping to the captured window bounds.

Validation

  • xcodebuild -project tabby.xcodeproj -scheme tabby -destination 'platform=macOS' build
    • ** BUILD SUCCEEDED **

Linked issues

None.

Risk / rollout notes

This increases the amount of screenshot area sent through OCR. That can improve context quality, but may increase OCR latency and include more on-screen text in the bounded visual-context excerpt.

@FuJacob FuJacob merged commit 251ad31 into main May 15, 2026
3 checks passed
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