Skip to content

Flaky e2e: a tab created from the project menu never reaches the tab strip (sidebar-menus) #308

Closed

Description

@yansfil

What happened

web/e2e/sidebar-menus.spec.ts "the sidebar's row menus: pin an unregistered project, open a tab, move the default, copy a session id" (line 79) fails at line 152 on a branch that does not touch it.
After the project menu's "New tab in main" the test waits 20 s for the Workspace's tab bar to show two Herdr tabs and sees one the whole time.

The daemon did create the tab: its log has tab.create.requested ("Creating worktree.open"), owner.tab_created with workspace_id w2 and tab_id w2:t2, and tab.control.ready 11 ms later.
Then Herdr focused the original pane (pane.focus.followed: "Herdr focused pane w2:p1; Hide was on w2:p2") and tab.visible_aligned kept w2:t1.
Nothing after that line names w2:t2, so the new tab never reached the checkout's tab strip, and no diagnostic says why.
(The reconnecting badge in the failure's page snapshot is not the cause: the spec's finally stops the daemon before Playwright takes the snapshot.)

The same shape as #231's Linux failure, where a tab the daemon created (a replacement shell) was missing from the Agent layout.

What you expected

A tab the daemon created and Herdr acknowledged shows in the tab strip once the next session read lands.

Steps to reproduce

  1. pnpm --dir web exec playwright test e2e/sidebar-menus.spec.ts:79 --repeat-each 8 against a debug hided and the pinned Herdr.

Not reproduced locally on macOS: 8 of 8 passed with 20 busy loops on 14 cores, and 4 of 4 with the page's WebSocket delayed 30 ms and 100 ms.
Seen once, on Linux, in the last 200 verify runs.

Versions

Diagnostics

What is known is above; the open question is whether w2:t2 was in the session projection and had a layout when the strip was built.
PR #310 adds close.replacement_unplaced for the replacement-shell path (#231); the creation path needs the same record.
The spec is tagged @flaky and runs on the non-blocking shard-1 step until this names the cause.

Activity

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

    @yansfil
    ContributorAuthor

    PR #418 (a97d304)로 sidebar-menus.spec.ts:116의 stale 기대값(Open Overview, ebf926a9가 메뉴에서 제거)을 고쳤습니다. 그동안 @flaky가 이 결정적 실패를 가렸고, #308 구간(프로젝트 메뉴에서 만든 탭이 탭 줄에 옴)은 그 뒤라 도달하지 못했습니다.

    수정 뒤 verify 37247943349 Linux 1/6의 quarantine 단계에서 ✓ 7 e2e/sidebar-menus.spec.ts:80:1 (19.5s)로 통과했습니다. :116 이후 구간까지 지나 통과한 첫 기록입니다.
    1회 통과라 #308 구간이 안정적이라는 증거는 아닙니다. macOS와 Windows, nightly 결과는 아직 없습니다. @flaky는 그대로 두고, 반복 통과가 쌓이는지 nightly에서 계속 봅니다.

  4. yansfil commented on Oct 5, 2026

    @yansfil
    ContributorAuthor

    journey가 #447에서 7개 spec으로 나뉘어 사라졌고, 제품 원인은 #420과 #438이 고쳤습니다. 같은 단계의 마지막 재발은 #469(이번에 닫음)입니다. 재발하면 CI의 retry 분류가 새 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

    bugquarantine

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions