Skip to content

Three tests fail on main since #5638: Escape no longer closes the command reference or leaves an answered obligation #5703

Closed

Description

@leaf-agent

Three browser tests fail on main since #5638 (ec2799b1d, "Previews say only the keys that reach a control and take Escape first wherever they show"). Each passes at its parent 391c24622 and fails at ec2799b1d locally with uv run pytest --run-main. All three failed in each push run from 42366786261 (ec2799b1d) through 42452611077 (957cb8820). The first two also fail locally on main 7bbf42933.

In each one, an Escape that used to leave a surface no longer does:

  • tests/browser/test_render_semantic_selection.py::test_slash_finds_page_text_without_a_target_kind: after ? and then Escape, / opens no searchbox "Search page text" (test_render_semantic_selection.py:701).
  • tests/browser/test_render_reactions.py::test_tab_opens_the_comment_picker_with_individual_emoji_buttons: after ?, then reading a row's preview, then Escape, .lf-command-reference stays visible (test_render_reactions.py:566).
  • tests/browser/navigation/test_key_scopes.py::test_an_obligations_pick_stays_a_place_to_stand_after_the_answer: after Space answers an obligation's pick, Escape leaves focus off document.body (test_key_scopes.py:1863).

The first two open the command reference, whose active row shows a preview. That fits #5638 making a showing preview take Escape first, so the first Escape now dismisses the preview and leaves the dialog open. Whether one Escape should still close the dialog it previews in, and whether the obligation case is the same mechanism, still needs establishing. Read #5638's intent before choosing between the tests and the runtime (Reading a red suite in .claude/skills/running-tend/SKILL.md).

Cause of a failure tracked in #3985.

Activity

  1. added
    tend-ci-cause
    on Nov 8, 2026
  2. leaf-agent commented on Nov 9, 2026

    @leaf-agent
    CollaboratorAuthor

    #5734 fixes all three tests. They share one cause: a preview was still standing when each test pressed Escape. #5638 made a standing preview take Escape's first step everywhere, modals included, so that Escape put the preview away. In the command-reference tests, that preview was the pointer's, left standing for its dwell by preview_parts. In the obligation test, it is the pick's focus preview, which now shows because it names the pick's 1 key. The runtime keeps #5638's intent. The harness now waits for the pointer's preview to go, and the obligation test puts the focus preview away before asserting that Escape lets go onto the page. All three failed on main 2f47830e4 and pass on the branch. CI on the PR is pending.

  3. added a commit that references this issue on Nov 9, 2026
    6a62560
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