Skip to content

Remote resolution shows new-message count instead of Resolved #5128

Closed

Description

@leaf-agent

The scheduled run 41432142330 records the following failing boundary. This is CI evidence, not a claim that the failure persists on current main or that its cause is established.

Reconcile current main, existing repairs and active work before reproducing. Diagnose the shared failing operation before choosing a fix; split ownership if reproduction establishes different mechanisms. Preserve the intended behavior from the originating changes and follow the repository’s focused verification, review and landing gates.

tests.browser.test_render_reactions::test_a_remote_resolve_disarms_the_open_reply_list_it_takes_away — Linux
browser = <render_harness.WatchedBrowser object at 0x7f8d7f9926f0>
serve = <function serve.<locals>.go at 0x7f8d8454a020>

    def test_a_remote_resolve_disarms_the_open_reply_list_it_takes_away(browser, serve):
        """A remote resolve waits behind the open view's notice, so the strip whose list is
        open stays. A digit there means what the strip drew, and a resolved thread offers
        no reaction, so it sends nothing; as the user's gesture in the thread it shows the
        resolution, whose messages wear no strip. The detached list stops owning digits,
        and the user stays on the thread they were in."""
        url = serve(PANEL_PAGE)
        root, reply = _thread(serve.page_dir)
        page = open_page(browser, url)
        view = open_panel_thread(page, root)
        strip = view.locator(f'.lf-msg[data-message="{reply}"] .lf-react-strip')
        trigger = view.locator(f'.lf-msg[data-message="{reply}"] .lf-react-trigger')
        trigger.click()
        expect(strip.locator(".lf-react-palette:popover-open")).to_have_count(1)
    
        thread_model.cmd_resolve(serve.page_dir, root)
        told(page)
>       expect(page.locator(".lf-fp-head .lf-thread-news")).to_have_text("Resolved")
E       AssertionError: Locator expected to have text 'Resolved'
E       Actual value: 1 new 
E       Call log:
E         - Expect "to_have_text" locator(".lf-fp-head .lf-thread-news") with timeout 120000ms
E         - waiting for locator(".lf-fp-head .lf-thread-news")
E           242 × locator resolved to <button type="button" data-lf-gen="1" data-lf-news="" title="Resolved" data-lf-offer="button" aria-keyshortcuts="Enter Space" class="lf-inline-action lf-thread-news lf-ui lf-ui-face">…</button>
E               - unexpected value "1 new"
E       
E       Aria snapshot:
E       - button "1 new"

/home/runner/work/leaf/leaf/tests/browser/test_render_reactions.py:2430: AssertionError
tests.browser.test_render_reactions::test_a_remote_resolve_disarms_the_open_reply_list_it_takes_away — macOS
browser = <render_harness.WatchedBrowser object at 0x10d640ef0>
serve = <function serve.<locals>.go at 0x11e8d2340>

    def test_a_remote_resolve_disarms_the_open_reply_list_it_takes_away(browser, serve):
        """A remote resolve waits behind the open view's notice, so the strip whose list is
        open stays. A digit there means what the strip drew, and a resolved thread offers
        no reaction, so it sends nothing; as the user's gesture in the thread it shows the
        resolution, whose messages wear no strip. The detached list stops owning digits,
        and the user stays on the thread they were in."""
        url = serve(PANEL_PAGE)
        root, reply = _thread(serve.page_dir)
        page = open_page(browser, url)
        view = open_panel_thread(page, root)
        strip = view.locator(f'.lf-msg[data-message="{reply}"] .lf-react-strip')
        trigger = view.locator(f'.lf-msg[data-message="{reply}"] .lf-react-trigger')
        trigger.click()
        expect(strip.locator(".lf-react-palette:popover-open")).to_have_count(1)
    
        thread_model.cmd_resolve(serve.page_dir, root)
        told(page)
>       expect(page.locator(".lf-fp-head .lf-thread-news")).to_have_text("Resolved")
E       AssertionError: Locator expected to have text 'Resolved'
E       Actual value: 1 new 
E       Call log:
E         - Expect "to_have_text" locator(".lf-fp-head .lf-thread-news") with timeout 120000ms
E         - waiting for locator(".lf-fp-head .lf-thread-news")
E           241 × locator resolved to <button type="button" data-lf-gen="1" data-lf-news="" title="Resolved" data-lf-offer="button" aria-keyshortcuts="Enter Space" class="lf-inline-action lf-thread-news lf-ui lf-ui-face">…</button>
E               - unexpected value "1 new"
E       
E       Aria snapshot:
E       - button "1 new"

/Users/runner/work/leaf/leaf/tests/browser/test_render_reactions.py:2430: AssertionError

The full tracebacks are in that run’s pytest-results-* JUnit artifacts.

Cause of a failure tracked in #4225.

Activity

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

    @leaf-agent
    CollaboratorAuthor

    The same Resolved versus 1 new assertion also blocks these cases in scheduled run 41432142330. Their earlier closed causes concern different boundaries (reply disappearance or metadata motion); this run stops at the news-label assertion before proving those later behaviors. Treat these as additional consumers of the news-label boundary and split them only if reproduction shows separate causes.

    Evidence: scheduled run 41432142330, pytest-results-* JUnit artifacts.

    • tests.browser.test_render_pages::test_a_failed_resolution_restores_a_focused_inline_reply: AssertionError: Locator expected to have text 'Resolved' Actual value: 1 new

    • tests.browser.test_render_pages::test_failed_resolve_candidate_restores_focused_reply: AssertionError: Locator expected to have text 'Resolved' Actual value: 1 new

    • tests.browser.threads.test_seated_threads::test_a_thread_resolved_while_its_reply_is_written_keeps_the_user_on_it[diff-clear]: AssertionError: Locator expected to contain text 'Resolved' Actual value: 1 new

    • tests.journeys.test_website_server::test_a_website_turn_posts_its_answer_when_the_move_is_settled_first[here]: AssertionError: Locator expected to have text 'Resolved' Actual value: 1 new

    • tests.journeys.test_website_server::test_a_website_turn_posts_its_answer_when_the_move_is_settled_first[elsewhere]: AssertionError: Locator expected to have text 'Resolved' Actual value: 1 new

  3. leaf-agent commented on Nov 3, 2026

    @leaf-agent
    CollaboratorAuthor

    Push run 41576718956 also blocks tests/browser/threads/test_seated_threads.py::test_a_resolution_from_elsewhere_moves_nothing_after_a_diff_thread: the exact Resolved button locator finds nothing, while its snapshot shows the held 1 new button. It stops before the later movement assertion. The refused panel/inline cases and diff-clear case have the same expected/actual notice words already recorded here. I am closing my overlapping #5155 and retaining this issue as the shared news-presentation investigation owner.

  4. leaf-agent commented on Nov 4, 2026

    @leaf-agent
    CollaboratorAuthor

    Two more tests in tests/browser/test_render_pages.py fail the same way: test_a_failed_resolution_restores_a_focused_inline_reply and test_failed_resolve_candidate_restores_focused_reply expect the panel's held-news notice to read Resolved after a remote Resolve, and get 1 new. On main a KeyError: 'browser' in their route handlers stops them before that assertion. #5321 fixes the handlers, and its CI (run 41802062077) shows both reaching this failure.

  5. leaf-agent commented on Nov 4, 2026

    @leaf-agent
    CollaboratorAuthor

    The tests are stale, not the notice. #5039 deliberately made held-news notices say one count ("1 new") and moved each fact, Resolved included, into the notice's title. The user chose that on 31 October, as the newsNotice header in browser/runtime/thread/held-news.js records. The failing DOM shows exactly that: text 1 new, title="Resolved".

    #5345 updates the six tests named here and in the comments to read 1 new as the text and Resolved as the title. On main, the reactions and diff-thread tests fail locally with the reported assertions. With the change, all 11 parametrized cases pass locally, including both journey parameters. The PR's CI is green at its head, and a tend-land run is landing it. Merging closes this issue.

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