Repository navigation
#188 (part 1): the matrix's prepares stop inheriting a selection; the click's route and the focus in the meta - #255
Merged
Merged
Conversation
…observation's meta names the focus The engine's element click now carries elementClick in its result meta: the plan (the element's own action or a synthesized click), why the ladder chose it (advertised, descendant, noAction, notPlainLeft, forced) and the hit-test's answer against the owner's application element when one was taken. The service passes it on as cua/elementClick and whitelists the engine's focusRead; beside it, cua/observation names the focused element by index and role on every observation, the focus the trailer's selected text masks. Value-free. Refs #188 Sminos-Session: cursor235#b93055dd (cua on macbook)
…row's selection A prepare that needs its field focused read the focus off the trailer's focus line, which the renderer drops whenever text is selected, so a focused field holding an earlier row's selection read as "could not be given the focus" (four cua rows invalid since hold 2a). Now: - after the click, a selection still masking the trailer is cleared as a stated step (the field emptied, named in the row's prepared); - a trailer still masked is its own reason, "the focus could not be read: a selection masks the trailer"; - the row judges the focus by cua's cua/observation focusedIndex of the prepare's last observation when it is there, else by the trailer (focusReadBy), and keeps the click's cua/elementClick in its engine meta; - emptyField names its emptying and the masked reason alike. Refs #188 Sminos-Session: cursor235#b93055dd (cua on macbook)
…e observation's meta and the stated clear Refs #188 Sminos-Session: cursor235#b93055dd (cua on macbook)
…d element in the meta (refs #188) Sminos-Session: cursor235#b93055dd (cua on macbook)
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
SSFSKIM
added a commit
that referenced
this pull request
Nov 1, 2026
…l, under ABC, apart from #187's verdict (refs #188) Before Part A, on cua's engine and the vendor's: the native matrix's electron/frontmost/paste.replace and the three background rows behind the run's Finder window, sent as matrix-cells.mjs makes plan.mjs's cases (the #255 prepares unchanged) and judged as caseRow judges a row, with the matrix's oracle; and cell 3, recorded only: an element click on the fixture's field holding a selection, and a coordinate click mid-text, the selected range read before and after by the approved bundle's text-view probe. Each item selects ABC and reads it back before its first act and after its last. The judge reports both in their own sections; #187's verdict never reads them. Sessions can bind some of their scenes (Finder is never observed), and keep cua/elementClick. Sminos-Session: cursor235#b93055dd (cua on macbook)
SSFSKIM
added a commit
that referenced
this pull request
Nov 1, 2026
…eat/171-m3 Only the plugin version overlapped; this branch's 0.21.0 is kept, the next minor above main's 0.20.6. Main's change is the macOS engine and its service (src/services/engine/service.mjs, observations.mjs) and the native matrix; it touches none of native/linux-engine/, scripts/linux-engine-diff/ or src/services/engine/linux/, and the Linux service imports neither changed module. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Hold 3 recorded four cua rows as "the field could not be given the focus" while the vendor passed them. The rows: Electron background typeText, pressKey Tab and paste @finder, plus electron/frontmost/paste.replace. That sentence is the native-matrix harness's own prepare check, not an engine error, so the keyboard actions never ran.
The check read focus only from the observation's trailer line "The focused UI element is N", which the renderer prints only when nothing is selected. Earlier rows left a selection in the same Electron field (frontmost
drag.select,selectText), so a focused field read as unfocused. Hold 10's natural arm shows exactly this: AXFocused true, the app's focused element the text area, a selection present, and no focus line.This PR makes the rows independent and the focus check unmaskable, and records the element click's route. Refs #188: acceptance is the four rows on the MacBook, judged live.
What changes
Harness (
scripts/native-matrix/plan.mjs,probe-plan.mjs,steps.mjs,matrix-text.mjs):prepared: ["field emptied to clear a selection"]. It runs only when a selection still masks the trailer after the click, and only where the prepare writes its own value afterwards.emptyFieldrecordsprepared: ["field emptied"].focusedIndex, which is the app's AXFocusedUIElement, the same read the trailer prints. Otherwise it falls back to the trailer; the vendor sends no meta. Rows recordpreparedandfocusReadBy(observationortrailer).Engine and service (value-free: indexes and roles only):
cua/elementClickon an element click:plan:action(withactionAXPress/AXPick) orsynthesized;reason: advertised, descendant, noAction, notPlainLeft or forced;hit: element, descendant, ancestor, other or noAnswer;hitTest: application.cua/observationnow carriesfocusedIndexandfocusedRoleon every observation, andfocusReadis whitelisted.Plugin 0.20.6 (its own commit).
Limits
selectText), i.e. readiness for the measured action. It doesn't show that the earlier click itself focused the field. Rows that pass today could turn invalid if an app's focus is elsewhere at that moment; watch for that at the next matrix sitting.Tests
ElementClickRecordTests. The desktop gate is closed.focusedIndex/focusedRolein the observation meta.ci-gateon 5735c98 GREEN: engine-swift, plugin, sandbox-live and test (run 41328230152); the PR's own checks are green (run 41328217830).Docs
Native-engine design spec: a Decision Log entry (#188, 2026-11-01) for the click record, the focus in the observation's meta, the stated clear and the -25212 limit, plus
elementClickin the Interfaces input-meta list and a line in "Observation (skyshot)".Refs #188
Sminos-Session: cursor235#b93055dd (cua on macbook)