Skip to content

macOS engine: a coordinate click lands one text line (~16 px) low in the Electron fixture; the vendor's lands on target #259

Open

Description

@SSFSKIM

Problem & intent

The macOS engine's coordinate click (click([x, y]) in screenshot pixels) landed one text line low in the Electron fixture, while OpenAI's helper, given the same point, landed on target.

Measured live on the MacBook, 2026-11-01 (#187's slot, cell 3 (ii); frontmost Electron fixture, window 720x560 at (140, 100), scale 2): point [120, 168] px = (60, 84) pt in the window, about (200, 184) on screen. The target was line 2, column 5 (offset about 25).

  • the vendor: caret at 25 (line 2, column 5), on target;
  • cua: caret at 39 (line 3, column 5), the same column one line (~16 px) lower. The route was 3, synthesized at the point, with no activation click.

Large targets (buttons) can hide an offset this size, so earlier click rows may not have shown it.

Intent: a coordinate click lands where the model aimed, in every scene, as the vendor's does.

Seams: the screenshot-to-screen mapping in the engine's coordinate click (native/engine/Sources/Engine/Input.swift, the Skyshot geometry), src/services/engine/ where the facade converts the point.

Constraints

Success criteria

  • Find the offset's source offline: a title-bar or content inset, the screenshot's origin, the scale, or rounding. Show whether it is Electron-only or applies to every app.
  • A test at the mapping seam that fails today by that offset.
  • Live: the same cell, plus one each on TextEdit and Chrome for Testing, lands on the target's line and column, and matches the vendor.

Open questions

Does the offset equal the window's title-bar height in this fixture?

Decision log

Sources

  • docs/evidence/2026-10-30-macos-agent-cursor/ item 187/188 records (branch fix/187-3b-slot).

Activity

  1. added
    bug
    status:ready-for-implementer
    priority:P1
    on Nov 1, 2026
  2. SSFSKIM commented on Nov 5, 2026

    @SSFSKIM
    OwnerAuthor

    The diagnostic cell's result (2026-11-05 re-slot, build 1f73143d1fb0, the Electron fixture, under ABC; recorded only). The setup was (ii)'s value with the caret at its end, the geometry read through Accessibility, the caret moved to offset 0, the geometry read again, then the same coordinate click.

    • Outcome: the caret moved to the click point and landed on target. The target was offsets 20..33 (line 2), and the caret landed at line 2, column 5. By the start geometry's line tops, the line under the posted point was also line 2.
    • Field scroll: 0 pt at both caret positions. The first line's offset from the field's top was 3 pt with the caret at the end and 3 pt with it at the start.
    • Field frame (AX, at the start): (156, 148, 426 × 99).
    • cua/coordinateClick: screenshotPoint (120, 168) px; windowPoint (60, 84) pt; postedLocation (200, 184) global pt; postedWindowLocation (60, 84); windowFrame (140, 100, 720 × 560); frameBeforePost (140, 100, 720 × 560). Route 3, click 8.2 ms.

    So under these conditions cua's click lands on target, and the caret at the end does not scroll the field. 2026-11-01's one-line-low miss stays unexplained: it isn't from the field's scroll, and it isn't from a frame change before the post. This ticket stays open. Evidence: docs/evidence/2026-10-30-macos-agent-cursor/item-187-reslot2/item-259-click-cua.jsonl and item-187.md (on fix/187-3b-slot, a950e5a).

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

  3. added 6 commits that reference this issue on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpriority:P1status:ready-for-implementer

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions