Skip to content

Engine: a drag whose end lies outside the screenshot is refused with a sentence that says the drop cannot be done (refs #334) - #339

Merged
SSFSKIM merged 1 commit into
mainfrom
fix/334-drag-end-refusal
Nov 9, 2026
Merged

SSFSKIM merged 1 commit into
mainfrom
fix/334-drag-end-refusal

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 9, 2026

Copy link
Copy Markdown
Owner

refs #334. #334 stays open: it is the feature of dropping across windows. This PR changes only the refusal text.

What changed

#328's pointOutsideScreenshot uses one sentence for every coordinate: "Give a point inside it: x from 0 to W−1 and y from 0 to H−1." For a drag's end, that remedy misleads. A model that meant to drop onto another app or the desktop would clamp the end into the window, and the item would drop at the edge of the source window.

When only a drag's end lies outside the screenshot, the refusal now reads:

A drag cannot end outside the window the screenshot shows: dropping onto another app's window or the desktop is not supported. Nothing was sent.

Validation Evidence

Sminos-Session: cursor235#b93055dd (cua on macbook)

…a sentence that says the drop cannot be done (refs #334)

#328's pointOutsideScreenshot sentence tells the model to give a point inside the image, which for a drag's end
invites clamping it into the window, so the item drops at the source window's edge. A drag's end outside now answers
"A drag cannot end outside the window the screenshot shows: dropping onto another app's window or the desktop is not
supported. Nothing was sent.", still pointOutsideScreenshot and with no coordinate range. The start, placed first,
keeps #328's sentence. screenshotPoint, coordinatePoint and coordinatePlacement take a dragEnd flag that drag sets for
the end only. OutsideScreenshotTests.testADragsEndOutsideSaysTheDropCannotBeDone. The spec's #334 entry and an
amendment note on #328's item 3. Plugin 0.27.15.

Sminos-Session: cursor235#b93055dd (cua on macbook)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-09T03:39:17.594721Z ffcd6b8 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@SSFSKIM
SSFSKIM merged commit 364e017 into main Nov 9, 2026
5 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