Skip to content

Corrected-hit route (#481) misses two qualified deliveries: frameless node.control, nil first hit #499

Open

Description

@SSFSKIM

What

#481's corrected-hit element route (fix/481-corrected-hit-route) delivers only where the corrected hit qualifies as the node's recorded control or #433's control beneath. Two cases it leaves out answer as main does: a refusal, never a wrong press.

  1. The recorded control is frameless. ScreenshotNode.control includes frameless ancestors, but the route looks node.control up only in kept.nodes, not kept.frameless (StalePoint.swift, near correctedRouteControl). Case: framed text inside a link whose frame was unreadable at observation. The link's frame is restored before the click, and the corrected hit returns the unchanged link (same handle, label, and a live frame under the point). routeControl is nil and the click answers as main.
  2. The first hit is nil. On Chromium a nil first hit classifies as .possibleWebArea. The guard keeps .noHit and marks the subsequent link hit .changed, and the qualified .beneath handle is there. But let hit = pointerHit (Input.swift ~:694) skips route construction, so a shared background click that needs the element route answers backgroundClickRefused.

Found by reviewer-high (aa790282) on 8351fb4. Kept out of #481 by ruling 1123: each fix widens where the route acts, and that is the surface where every review round found wrong-press P1s.

Done when

Each case delivers through the same label-checked qualification #481 uses, by handle, without being used for pointer classification or as a fallback walk. Tests show each case delivers, and that a relabelled control in each shape is refused. A qual cell on CfT shows the case delivered and no false ok.

Activity

  1. added
    enhancement
    status:ready-for-implementer
    priority:P3
    on Nov 23, 2026
  2. added a commit that references this issue on Nov 23, 2026
  3. SSFSKIM commented on Nov 23, 2026

    @SSFSKIM
    OwnerAuthor

    Added by ruling 1130, from #481's final review of 88d9ead: a dispatch refusal by the route's single check (label, frame or ancestry; ElementInput.swift ~:569) rebuilds the stale-point record with ms: 0. That drops the hit and window timings and clears rechecked/afterActivation, even right after a focus-hold recheck, so the refusal sentence can say the app was activated while the meta omits it. Carry the standing record's timing and check flags into the refusal.

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

    enhancementpriority:P3status:ready-for-implementer

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions