Skip to content

Fix minimized TextEdit selection read-back without refusing the successful AX write #194

Open

Description

@SSFSKIM

Problem & intent

Hold-1 minimized-select established the write landed but the engine read missed it: independent probe range 107/7, focus not on the text area, engine focus read AXError -25212. M2b closed the write-versus-read investigation; read-back is the remaining gap. Keep successful AX selection on exposed minimized trees supported.

Seams: native/engine/Sources/Engine/TextSelection.swift, native/engine/Sources/Engine/TextViewProbe.swift.

Constraints

Success criteria

  • Reproduce the minimized non-focused fixture and compare engine read-back with TextViewProbe.
  • Correct the selection read, or accurately represent unavailable read-back rather than claim the write failed.
  • Preserve minimized screenshot/coordinate/key rules; never un-minimize or focus owner apps to improve a read.
  • Cover non-focused minimized selection and genuinely unavailable state in tests; verify the independent live range.

Open questions

Which target-selection lookup applies when focus reads -25212 but the text area exposes its selected range? Verify the observation contract first.

Decision log

Sources

Activity

  1. added
    bug
    status:ready-for-implementer
    priority:P2
    on Oct 22, 2026
  2. SSFSKIM commented on Oct 23, 2026

    @SSFSKIM
    OwnerAuthor

    2026-10-23 seam-consolidation note: new dogfood evidence in MAWS plugin/cua/dogfood-feedback/l6-artifacts.md, added item 13, reports an offset ProseMirror selection. #214 registers that distinct plausible mapping failure and owns a unified select_text contract review with #190 and #194, rather than a third independent rewrite of TextSelection.swift. This does not reclassify this ticket’s existing evidence or close it as a duplicate. Coordinate source/range semantics, successful-write versus read-back, and refusal tests through #214 before choosing incompatible repairs. No GUI or live reproduction performed.

    Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)

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:P2status:ready-for-implementer

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions