Skip to content

Flaky test: Selecting an Agent tab moves the title width to it, and the selected tab stays in sight once the strip scrolls #579

Closed

Description

@github-actions

CI found this test flaky: it failed, then passed on the one retry in the same job, so the run passed.

First attempt's failure:

Error: expect(locator).toHaveCount(expected) failed

Locator:  locator('[data-agent-tab-bar] [role=tab]')
Expected: 16
Received: 15
Timeout:  5000ms

Call log:
  - Expect "toHaveCount" locator('[data-agent-tab-bar] [role=tab]') with timeout 5000ms
  - waiting for locator('[data-agent-tab-bar] [role=tab]')
    2 × locator resolved to 4 elements
      - unexpected value "4"
    - locator resolved to 5 elements
    - unexpected value "5"
    - locator resolved to 6 elements
    - unexpected value "6"
    - locator resolved to 7 elements
    - unexpected value "7"
    - locator resolved to 12 elem

Fix the cause or delete the test by the expiry date; a flaky test is not left running. A longer timeout, more retries or a lower expectation does not end this issue. Each later flaky run adds a comment here.

Activity

  1. added
    bug
    quarantine
    on Oct 5, 2026
  2. yansfil commented on Oct 6, 2026

    @yansfil
    Contributor

    Closing as fixed by #569 (merged 2026-10-06 00:40Z).
    The failing run 37360697791 (Linux, 2026-10-05 20:26Z, before #569) shows a second tmp project in the sidebar and only Tab 5 missing from the fixture strip (15 of 16): Herdr's pane_created carried a /tmp cwd, so the tab was bound to a /tmp checkout. #569 confirms a new pane's cwd with pane.get before binding it, which is this shape.
    No recurrence since #569 merged (19 completed verify runs, against 3 in about 25 before it); the flaky report reopens this if it comes back.

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

    bugquarantine

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions