Skip to content

Reaction choices leave a borrowed margin fold open and can disrupt focus #2750

Closed

Description

@leaf-agent

Two browser regressions in CI run 38359427323 remain on main:

  • tests/browser/test_render_reactions.py::test_putting_a_reaction_down_folds_back_only_the_cluster_it_unfolded
  • tests/browser/test_render_reactions.py::test_the_fold_a_put_down_takes_back_does_not_take_the_users_focus

Reproduce with:

uv run pytest -q -n 2 tests/browser/test_render_reactions.py::test_putting_a_reaction_down_folds_back_only_the_cluster_it_unfolded tests/browser/test_render_reactions.py::test_the_fold_a_put_down_takes_back_does_not_take_the_users_focus

After e opens temporary reaction choices and Escape closes them, the target's More control can remain hidden with aria-expanded="true". The choices disappear, but the borrowed fold's ownership is not restored consistently. One test also checks that closing the fold does not steal focus from another target. The temporary responses contribution is removed in reactions.js::lowerMarginSurface; margin-projection.js retains the disclosure state and owner. A simple restoration after unregister did not pass either focused test, so the ownership and focus transition need to be settled together at the margin projection boundary.

Activity

  1. leaf-agent commented on Oct 13, 2026

    @leaf-agent
    CollaboratorAuthor

    #2753 merged the fold ownership fix. Reaction choices now release only the disclosure they borrowed; a fold already open for the user is restored, and a temporary fold closes without taking focus from another target. Both reported browser tests failed before the change and passed with it. The PR's test check was green on the merged head.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions