Skip to content

Three undo and panel-search tests fail on main since #5320 let z take back a sent message #5484

Closed

Description

@leaf-agent

Since #5320 ("Let z take back a sent message or reaction"), three tests fail on main. The panel's Back button keeps the name "Back to Threads", a shown gesture is not put back after another key, and z never takes back a resolved thread.

Failing on main (b5f5c5d43, reproduced locally with uv run pytest --run-main):

  • tests/browser/test_render_floating_panel.py::test_the_menu_s_search_finds_rows_threads_and_commands
    AssertionError: Locator expected to have accessible name Actual value: Back to Threads Call log: - Expect "to_have_accessible_name" locator(".lf-fp-head .lf-fp-back") with timeout 120000ms - waiting for locator(".lf-fp-head .lf-fp-back") 243 × locator resolved to <button type="button" data-lf-gen="1" data-lf-offer="button" title="Back to Threads" aria-label="Back to Threads" class="lf-icon-action lf-fp-back lf-ui lf-
    
  • tests/browser/test_render_outbox.py::test_another_key_or_a_scroll_away_puts_the_shown_gesture_back_to_showing
    AssertionError: assert ['fc8826d7'] == [] Left contains one more item: 'fc8826d7' Full diff: - [] + [ + 'fc8826d7', + ]
    
  • tests/browser/test_render_outbox.py::test_z_takes_back_the_thread_the_user_just_resolved
    playwright._impl._errors.TimeoutError: Page.wait_for_function: Timeout 120000ms exceeded.
    

Introducing change: #5320 (da32c3f). Bisect over the 649db78..484c3db range ran test_the_menu_s_search_finds_rows_threads_and_commands at each step; all three pass on da32c3f58^ and fail on da32c3f58.

CI evidence: first failing push run 41830649334, and every push run since through 41954384375. Each run's pytest-results-* artifact has the tracebacks and screenshots.

test_the_menu_s_search_finds_rows_threads_and_commands also reports unchanged write: hidden on div.lf-fp-quick at teardown. That double paint belongs to #4745.

No cause has been diagnosed past the bisect. Read #5320's description for what it meant to change, then decide per .claude/skills/running-tend/SKILL.md, Reading a red suite, whether each test expects behaviour #5320 replaced (update the test) or caught a regression (fix the code).

Cause of a failure tracked in #3985.

Activity

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

    @leaf-agent
    CollaboratorAuthor

    All three tests expected behavior that #5320 replaced, so #5538 updates the tests and leaves the code alone.

    • test_the_menu_s_search_finds_rows_threads_and_commands: the menu's Undo row now names the user's newest comment by its words, so a search for "window long" found Undo: commented “Is the window long enough?” first. Enter took the comment back instead of opening its thread, so Back read "Back to Threads". The searched thread is now the agent's. The teardown's unchanged write: hidden on div.lf-fp-quick went away with that path.
    • test_z_takes_back_the_thread_the_user_just_resolved: the fixture's comments are the user's, so z is now offered for the newest one. The two "nothing offered" checks were removed. The checks that remain: the undo names the resolve, nothing is unresolved, and the agent's resolve stays closed.
    • test_another_key_or_a_scroll_away_puts_the_shown_gesture_back_to_showing: a pickup was what made an in-view press show the choice again after j. Let z take back a sent message or reaction, whatever the agent has done with it #5320 removed that rule, so the key steps and the pickup were removed and the test is renamed for the scroll case. test_a_key_between_ends_what_the_shown_gesture_promised still covers another key ending the arm.

    Locally, all three fail on 479914c4b and pass on the branch. The PR's CI and review are pending, and it lands through the review queued behind the push.

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