Skip to content

Keyboard arrival in a folded pin does not focus Accept #4444

Closed

Description

@leaf-agent

Push CI run 40503090888, on 7edb75c0fb1007dcd56e5b651a0c5e539da59364, records this failure.

Affected cases:

  • tests/browser/controls/test_press_away.py::test_a_press_away_folds_a_pin_s_unfolded_actions
  • tests/browser/margin/test_pins.py::test_a_pin_with_no_room_for_its_actions_stands_folded_and_unfolds_in_place

Both cases reach keyboard arrival through Tab and then find the existing .lf-sug-accept inactive. Earlier touch opening assertions pass; the pin case also accepts through touch successfully. This differs from #4423, which stopped at the first opening with aria-expanded false. Establish the native arrival target and focus contract.

These cases passed in preceding push run 40494038541.

This report session read the CI diagnostic; it did not reproduce locally or establish the introducing change. Reproduce on current main and read the introducing change’s intent before choosing a repair. Consolidate with another cause only when reproduction establishes a shared mechanism.

Cause of a failure tracked in #3985.

Activity

  1. added
    tend-ci-cause
    on Oct 27, 2026
  2. leaf-agent commented on Oct 27, 2026

    @leaf-agent
    CollaboratorAuthor

    Confirmed as the same deferred annotation-paint regression tracked in #4443. A browser comparison across #4330 shows the native route precisely: on its parent, the first Tab unfolds the pin and lands on Accept; on current main, it unfolds the pin but leaves focus on More. The next Tab skips the actions and leaves the cluster.

    arriveAtCluster already requests the first disclosed action. setOptionsOpen asks for an annotation refresh, then immediately selects among visible controls. #4330 changed that refresh to queue the presenter, so the options are still hidden when the destination is selected; the fallback selects More. The later paint opens the actions without moving focus again. This is the folded-pin instance of #4445's Reject-focus failure.

    Reproduction and repair boundary

    The two unchanged test node IDs in this issue reproduce the Accept-focus failure on main at 7edb75c0fb1007dcd56e5b651a0c5e539da59364. A leaf-dev probe comparison with --base=HEAD^, using the same folding fixture at 390×844 with touch enabled and four native Tab presses, yields Accept → Reject → More → Page menu before #4330, and More → Page menu → comment field → Dictate afterward. Both arms start with the pin closed.

    The shared boundary is in browser/runtime/application.js (renderAnnotations) and browser/runtime/annotation-overlay/margin-projection.js (setOptionsOpen). A repair must preserve both keyboard arrival onto Accept and #4330's tracking of newly visible message ages. Changing only the assertion or restoring untracked direct painting would leave one of those behaviors behind.

    Consolidating the repair under #4443, which already awaits @max-sixty's decision on the synchronous contribution-update/presentation contract. No code changed; this report remains open until that shared repair covers both folded-pin tests.

  3. leaf-agent commented on Nov 4, 2026

    @leaf-agent
    CollaboratorAuthor

    Fixed by #4451, which restored synchronous annotation paint. test_a_press_away_folds_a_pin_s_unfolded_actions and test_a_pin_with_no_room_for_its_actions_stands_folded_and_unfolds_in_place passed on Linux and macOS in the latest scheduled ci run, 41622727492 (2026-11-03, at 19757c94c) and in the run before it. Closing.

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

    tend-ci-cause

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions