Skip to content

Answered playground output retains banner instead of the selected strip #5170

Closed as not planned

Description

@leaf-agent

The scheduled run 41432142330 records this failing boundary. This report supplies CI evidence; it has not reproduced the failure on current main or established its cause.

Reconcile against current main and active repair work, reproduce the focused boundary, and fix the highest incorrect owner while preserving the originating change’s intent and the user behavior. Reuse an existing owner when reproduction proves a shared mechanism. Follow normal review and landing gates.

tests.browser.widgets.test_on_panel::test_an_answered_obligations_words_are_its_widgets_semantic_state — Linux
browser = <render_harness.WatchedBrowser object at 0x7f7c1fa4fa70>
serve = <function serve.<locals>.go at 0x7f7c26314860>

    def test_an_answered_obligations_words_are_its_widgets_semantic_state(browser, serve):
        """Each family names its answer from the state it was answered with.
    
        A draft says its current words, a playground the instruction it sent rather than
        whatever its controls show now, and an option the user added is named by the
        rendered words its `add` carried. A `multiple` group answered by Done with no pick
        of the user's names its authored choice."""
        url = serve(
            leaf_page(
                "answer words",
                """
    <h1 id="h">Answers</h1>
    <lf-ask id="note-ask"><h2>Is this release note right?</h2>
    <lf-draft id="note" needed><pre>
    Adds --dry-run to every mutating command.
    </pre></lf-draft></lf-ask>
    <lf-ask id="cache-ask"><h2>Which cache?</h2>
    <lf-options id="cache" choose>
      <lf-option id="cache-none"><strong>No cache</strong> Read through.</lf-option>
    </lf-options></lf-ask>
    <lf-ask id="tags-ask"><h2>Which tags?</h2>
    <lf-options id="tags" choose multiple>
      <lf-option id="tag-alpha" chosen><strong>Alpha</strong></lf-option>
      <lf-option id="tag-beta"><strong>Beta</strong></lf-option>
    </lf-options></lf-ask>
    <lf-ask id="tone-ask"><h2>Which notification?</h2>
    <lf-playground id="tone">
      <lf-playground-control name="format" label="Format" kind="choice" value="banner">
        <lf-playground-choice value="banner" label="Banner"></lf-playground-choice>
        <lf-playground-choice value="strip" label="Strip"></lf-playground-choice>
      </lf-playground-control>
      <lf-playground-preview><p id="tone-preview">The notification.</p></lf-playground-preview>
      <lf-playground-output>Build the <lf-playground-value for="format"></lf-playground-value>
      notification.</lf-playground-output>
    </lf-playground></lf-ask>
    """,
            )
        )
        page = open_page(browser, url)
        door = url.rsplit("/versions/", 1)[0] + "/api/event"
        for widget, action, detail in [
            ("note", "edit", {"value": "Adds --dry-run to every command."}),
            ("cache", "add", {"option": "cache-redis", "text": "**Redis** in front"}),
            ("cache", "choose", {"value": ["cache-redis"]}),
            ("tags", "answer", {}),
            (
                "tone",
                "choose",
                {"values": {"format": "strip"}, "instruction": "Build the strip one."},
            ),
        ]:
            posted = post_event(
                page,
                door,
                data={
                    "kind": "action",
                    "revision": 1,
                    "widget": widget,
                    "action": action,
                    "detail": detail,
                },
            )
            assert posted.ok, posted.text()
        expect_obligations_answered(page, "4/4")
        output = page.locator("#tone lf-playground-output")
>       expect(output).to_contain_text("strip")
E       AssertionError: Locator expected to contain text 'strip'
E       Actual value: Build the banner
E         notification. 
E       Call log:
E         - Expect "to_contain_text" locator("#tone lf-playground-output") with timeout 120000ms
E         - waiting for locator("#tone lf-playground-output")
E           240 × locator resolved to <lf-playground-output data-lf-done="1" data-lf-content="markup">…</lf-playground-output>
E               - unexpected value "Build the banner
E         notification."
E       
E       Aria snapshot:
E       - main:
E         - heading "Answers" [level=1]
E         - heading "Is this release note right?" [level=2]
E         - text: my change
E         - paragraph: Adds --dry-run to every command.
E         - button "Edit"
E         - button "Copy Markdown"
E         - heading "Which cache?" [level=2]
E         - text: my change
E         - 'checkbox "choose one: No cache — option 1 of 2"': choose one
E         - strong: No cache
E         - text: Read through. my change
E         - 'checkbox "selected: Redis in front — option 2 of 2" [checked]': selected
E         - strong: Redis
E         - text: in front
E         - textbox "Another option":
E           - /placeholder: Add another option
E         - heading "Which tags?" [level=2]
E         - text: my change
E         - 'checkbox "selected: Alpha — option 1 of 2" [checked]': selected
E         - strong: Alpha
E         - 'checkbox "choose any: Beta — option 2 of 2"': choose any
E         - strong: Beta
E         - textbox "Another option":
E           - /placeholder: Add another option
E         - 'button "Take back Done: reopen these options" [pressed]': Done
E         - heading "Which notification?" [level=2]
E         - text: my change
E         - region "Preview":
E           - paragraph: The notification.
E         - region "Controls":
E           - group "Controls":
E             - text: Format
E             - radiogroup "Format":
E               - radio "Banner" [checked]
E               - text: Banner
E               - radio "Strip"
E               - text: Strip
E         - region "Instruction to agent":
E           - button "Reset"
E           - button "Show instruction"
E           - button "Use these settings"
E       - navigation "Page Map, 5 locations":
E         - toolbar "Changes, threads, items on me, delivery status, and activity":
E           - group "Page actions for draft · Is this release note right?":
E             - status "Queued for Claude, 1 of 4, 15 percent down, Queued for Claude · draft · edit · Is this release note right?"
E           - group "Page actions for options · Which cache?":
E             - status "Queued for Claude, 2 of 4, 26 percent down, Queued for Claude · options · choose · Which cache?"
E           - group "Page actions for options · Which tags?":
E             - status "Queued for Claude, 3 of 4, 50 percent down, Queued for Claude · options · answer · Which tags?"
E           - group "Page actions for playground · Which notification?":
E             - status "Queued for Claude, 4 of 4, 75 percent down, Queued for Claude · playground · choose · Which notification?"
E       - dialog:
E         - region "Leaf":
E           - button "Page menu · Away"
E           - textbox "Comment on the page":
E             - /placeholder: Away c
E           - button "On me"

/home/runner/work/leaf/leaf/tests/browser/widgets/test_on_panel.py:195: AssertionError
tests.browser.widgets.test_on_panel::test_an_answered_obligations_words_are_its_widgets_semantic_state — macOS
browser = <render_harness.WatchedBrowser object at 0x10a2b2c60>
serve = <function serve.<locals>.go at 0x10eedb9c0>

    def test_an_answered_obligations_words_are_its_widgets_semantic_state(browser, serve):
        """Each family names its answer from the state it was answered with.
    
        A draft says its current words, a playground the instruction it sent rather than
        whatever its controls show now, and an option the user added is named by the
        rendered words its `add` carried. A `multiple` group answered by Done with no pick
        of the user's names its authored choice."""
        url = serve(
            leaf_page(
                "answer words",
                """
    <h1 id="h">Answers</h1>
    <lf-ask id="note-ask"><h2>Is this release note right?</h2>
    <lf-draft id="note" needed><pre>
    Adds --dry-run to every mutating command.
    </pre></lf-draft></lf-ask>
    <lf-ask id="cache-ask"><h2>Which cache?</h2>
    <lf-options id="cache" choose>
      <lf-option id="cache-none"><strong>No cache</strong> Read through.</lf-option>
    </lf-options></lf-ask>
    <lf-ask id="tags-ask"><h2>Which tags?</h2>
    <lf-options id="tags" choose multiple>
      <lf-option id="tag-alpha" chosen><strong>Alpha</strong></lf-option>
      <lf-option id="tag-beta"><strong>Beta</strong></lf-option>
    </lf-options></lf-ask>
    <lf-ask id="tone-ask"><h2>Which notification?</h2>
    <lf-playground id="tone">
      <lf-playground-control name="format" label="Format" kind="choice" value="banner">
        <lf-playground-choice value="banner" label="Banner"></lf-playground-choice>
        <lf-playground-choice value="strip" label="Strip"></lf-playground-choice>
      </lf-playground-control>
      <lf-playground-preview><p id="tone-preview">The notification.</p></lf-playground-preview>
      <lf-playground-output>Build the <lf-playground-value for="format"></lf-playground-value>
      notification.</lf-playground-output>
    </lf-playground></lf-ask>
    """,
            )
        )
        page = open_page(browser, url)
        door = url.rsplit("/versions/", 1)[0] + "/api/event"
        for widget, action, detail in [
            ("note", "edit", {"value": "Adds --dry-run to every command."}),
            ("cache", "add", {"option": "cache-redis", "text": "**Redis** in front"}),
            ("cache", "choose", {"value": ["cache-redis"]}),
            ("tags", "answer", {}),
            (
                "tone",
                "choose",
                {"values": {"format": "strip"}, "instruction": "Build the strip one."},
            ),
        ]:
            posted = post_event(
                page,
                door,
                data={
                    "kind": "action",
                    "revision": 1,
                    "widget": widget,
                    "action": action,
                    "detail": detail,
                },
            )
            assert posted.ok, posted.text()
        expect_obligations_answered(page, "4/4")
        output = page.locator("#tone lf-playground-output")
>       expect(output).to_contain_text("strip")
E       AssertionError: Locator expected to contain text 'strip'
E       Actual value: Build the banner
E         notification. 
E       Call log:
E         - Expect "to_contain_text" locator("#tone lf-playground-output") with timeout 120000ms
E         - waiting for locator("#tone lf-playground-output")
E           239 × locator resolved to <lf-playground-output data-lf-done="1" data-lf-content="markup">…</lf-playground-output>
E               - unexpected value "Build the banner
E         notification."
E       
E       Aria snapshot:
E       - main:
E         - heading "Answers" [level=1]
E         - heading "Is this release note right?" [level=2]
E         - text: my change
E         - paragraph: Adds --dry-run to every command.
E         - button "Edit"
E         - button "Copy Markdown"
E         - heading "Which cache?" [level=2]
E         - text: my change
E         - 'checkbox "choose one: No cache — option 1 of 2"': choose one
E         - strong: No cache
E         - text: Read through.
E         - 'checkbox "selected: Redis in front — option 2 of 2" [checked]': selected
E         - strong: Redis
E         - text: in front
E         - textbox "Another option":
E           - /placeholder: Add another option
E         - heading "Which tags?" [level=2]
E         - text: my change
E         - 'checkbox "selected: Alpha — option 1 of 2" [checked]': selected
E         - strong: Alpha
E         - 'checkbox "choose any: Beta — option 2 of 2"': choose any
E         - strong: Beta
E         - textbox "Another option":
E           - /placeholder: Add another option
E         - 'button "Take back Done: reopen these options" [pressed]': Done
E         - heading "Which notification?" [level=2]
E         - text: my change
E         - region "Preview":
E           - paragraph: The notification.
E         - region "Controls":
E           - group "Controls":
E             - text: Format
E             - radiogroup "Format":
E               - radio "Banner" [checked]
E               - text: Banner
E               - radio "Strip"
E               - text: Strip
E         - region "Instruction to agent":
E           - button "Reset"
E           - button "Show instruction"
E           - button "Use these settings"
E       - navigation "Page Map, 5 locations":
E         - toolbar "Changes, threads, items on me, delivery status, and activity":
E           - group "Page actions for draft · Is this release note right?":
E             - status "Queued for Claude, 1 of 4, 15 percent down, Queued for Claude · draft · edit · Is this release note right?"
E           - group "Page actions for options · Which cache?":
E             - status "Queued for Claude, 2 of 4, 26 percent down, Queued for Claude · options · choose · Which cache?"
E           - group "Page actions for options · Which tags?":
E             - status "Queued for Claude, 3 of 4, 50 percent down, Queued for Claude · options · answer · Which tags?"
E           - group "Page actions for playground · Which notification?":
E             - status "Queued for Claude, 4 of 4, 75 percent down, Queued for Claude · playground · choose · Which notification?"
E       - dialog:
E         - region "Leaf":
E           - button "Page menu · Away"
E           - textbox "Comment on the page":
E             - /placeholder: Away c
E           - button "On me"

/Users/runner/work/leaf/leaf/tests/browser/widgets/test_on_panel.py:195: AssertionError

Full diagnostics are in the 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

    Duplicate of #5168, which owns the same deciding failure boundary. These issues were created concurrently by the scheduled-report and push-report triage sessions. Preserve reproduction, repair and landing ownership there; the scheduled evidence is run 41432142330, and the push evidence is run 41576718956. No resolution is claimed by this closure.

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