You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
macOS engine: the focus route's caret scan searches a field's character boxes by line, then x, instead of linearly #290
#283's focus route places the caret at a background Chrome text field's clicked point by scanning the field's character boxes (AXBoundsForRange {i, 1}) linearly for the one that holds the point. AXVisibleCharacterRange does not narrow the scan: Chrome for Testing 156 answers the whole text even when the field is scrolled. On #283's hosted probe (run 42150236590), a 3,074-character textarea took 165-185 ms for a full linear scan (1,538 calls, 72-104 ms to a mid-field match). Fields over caretScanLimit (5,000 characters) are not scanned at all: the click answers focusedNotPlaced (caret pointOutsideText).
Intent. Replace the linear scan with a search over the boxes in reading order: a binary search on the line (box y), then on x within the line. The probe's prototype found offset 1537 in 12 calls (under 1 ms). Then raise or drop the 5,000-character limit.
Empty boxes (line breaks, collapsed whitespace) and failed reads break a plain bisection. The search must step past them, or fall back to a bounded linear scan near the probe point, never infer across them.
Unit tests over synthetic box layouts: wrapped lines, empty lines, runs of empty boxes, failed reads, and a 20,000-character field. The search answers the same offset as the linear scan wherever the linear one answers.
A hosted probe re-measurement on the long textarea (the probe/283-hosted kit's long-* cells) with the call count and time.
Activity
Engine: a right-to-left value past 5,000 characters keeps #283's refu…
Probe 290: clicks inside the textareas' four shown lines, a cell past…
Merge origin/main into fix/290-caret-search (refs #290)
Docs: #290's Decision Log entry, its stated limits and #341, the host…
Engine: boxes out of reading order past the linear scan's reach are r…
Docs: #290's disorder refusal past 5,000 characters and its one-style…
Engine: the caret search reads the text's direction from its first ch…
Plugin: #290 takes 0.27.19, after #330's 0.27.16, #303's 0.27.17 and #…
Engine: a text whose first characters have no boxes yet is not search…
SSFSKIM commentedon Nov 9, 2026
[board] in-review: PR #342: caret search by line then x; review clean after 4 rounds; ci-gate green
Engine: the caret's offset searched by line, then x, with #283's line…
SSFSKIM commentedon Nov 9, 2026
[board] done: Landed via PR #342 (0.27.19)
Merge origin/main into fix/303-recreated-tokens, #290's entry kept be…
Merge origin/main (#290, #303) into fix/330-new-element-over-point; t…
Engine: a Chromium click writes the caret before any focus, and answe…