Skip to content

Engine: a link whose text grows with a count (Inbox to Inbox (3)) is refused nodeGone by the stale-point guard #340

Open

Description

@SSFSKIM

Problem

#296's stale-point guard refuses a click as nodeGone when a link's text is replaced (textContent) and the text's width changes, even when only the content changed. For example, "Inbox" becomes "Inbox (3)", or "1 minute ago" becomes "2 minutes ago". This happened 12 of 12 times on Chrome for Testing and Safari in #298's measurement.

For a link, the record takes the inner AXStaticText. Replacing the text re-creates that node. #296's re-created search then looks for a node with the old frame. The grown text sits 6–20 pt away from it, so the search finds nothing and the click is refused. #296's false-positive spike had no link whose label changed, so this never showed up there.

Measured in #298: the findings are at #298 (comment), limit 6. The runs are https://github.com/SSFSKIM/cua/actions/runs/42558915827 and https://github.com/SSFSKIM/cua/actions/runs/42559900886. The kit is probe/298-measure, with the cells inbox and reltime.

Intent

A link that gains a count or a ticking time keeps taking clicks. A link whose words change meaning is still refused.

One way: the re-created search accepts a text frame that grows from the same origin when its words agree under #298's word rule, which sets numbers aside together with the words that follow them up to the next punctuation mark. Measure before building, against #296's and #298's cells.

Constraints

Success criteria

Activity

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

    @SSFSKIM
    OwnerAuthor

    Reproduced live in #330's gate

    Run https://github.com/SSFSKIM/cua/actions/runs/42585577476 (kit probe/330-measure c0d0644, main e31bb1f against #330's branch 7f6eb3d), in the "replaced link text" cells:

    The tables are in ~/.local/share/probe-330/run-42585577476/tables.txt on the MacBook. The cell lives in scripts/probe-330/gate.mjs and can be reused for this ticket's A/B.

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

  3. added
    status:in-progress
    and removed
    status:ready-for-implementer
    on Nov 10, 2026
  4. SSFSKIM commented on Nov 19, 2026

    @SSFSKIM
    OwnerAuthor

    Parked as deferred under design ruling 1ea561bc:880.

    What was built. Branch fix/340-growing-link-text, kept for the record at 59bc2bce. A resized AXStaticText could match its record when the recorded interactive control was alive on its own handle, its live frame still held the point, the new text sat inside it through inert elements, and the labels agreed. Phase 1 of the hosted kit probe/340-qual (run 44507959686, README 77a00f78) reproduced the bug on main. With the record at the text, inbox, reltime and the shrink cell were refused nodeGone 10/10 on CfT, Safari and Electron.

    Why it stopped. Three review rounds each found new wrong-target or wrong-content matches:

    • Round 1 (700c80cd): text from a different control could match: a same-label link sliding into the removed one's place. So could symbol-only labels ("♡" → "🗑") and a double label read.
    • Round 2 (7f9fd90a): the owner walk stopped at a framed wrapper. It also skipped AXPress groups and passed an owner role it hadn't read. Frameless recorded texts slipped through, and number positions in wordless labels were lost.
    • Round 3 (59bc2bce):
      1. The router could press a different control than the anchor: an enclosing link instead of an AXPress group.
      2. A failed action read at observation let the anchor skip an AXPress group, because Fetch returns [] for an error as well as for no actions.
      3. A link whose AXURL changed (the same element reused for another destination) still matched.
      4. Label similarity let changed meaning through: "3 drafts to review" → "12 invoices to pay", "Move ↑" → "Move ↓ (12)", and an AXValue ignored when the title agreed.

    The narrowed rule proposed next (identical labels, with each digit run a wildcard, plus or minus one count group, plus a toggled plural "s") still has a wrong-target class built in: pagination. "2" → "3", "Page 2" → "Page 3" and "Step 1 of 4" → "Step 2 of 4" are different controls at the same place in a resized pager.

    Conclusion. A label-similarity rule can't tell a grown count from a different numbered control without the app's own identity for the element. The failure mode today is a safe refusal: the agent re-observes and clicks again. A wrong click is not safe, so the trade isn't worth it for a P3.

    If this is reopened, it needs evidence of identity that doesn't come from the label: an app-provided element identity (a DOM id or AXDOMIdentifier, and a stable AXURL that only rewrites the label), or a before-and-after structural check. #431, a wrong click on main that a same-label link sliding into place causes, asks the same question for #296's same-width search.

  5. added
    status:deferred
    and removed
    status:in-progress
    on Nov 19, 2026
  6. SSFSKIM commented on Nov 19, 2026

    @SSFSKIM
    OwnerAuthor

    [board] deferred: parked under ruling 880: label-similarity cannot separate a grown count from a different numbered control; branch fix/340-growing-link-text kept at 59bc2bc

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:P3status:deferred

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions