Repository navigation
Closed
Labels
bugSomething isn't workingquarantineA flaky test CI leaves out of required checks until this issue is closed
Description
What happened
새 탭 단축키(new_tab)를 연달아 두 번 누르면 탭이 하나만 생기고 하나가 사라집니다.
web/e2e/checkout-owner.spec.ts의 두 test가 같은 assertion 시그니처로 실패합니다: twoQuickNewTabs 뒤 expect(tabs).toHaveCount(3, { timeout: 20_000 })에서 Expected 3, Received 2.
Playwright call log는 20초 내내 탭 2개(1개에서 2개까지는 늘어남)를 보여, 두 번째 탭이 늦게 오는 것이 아니라 오지 않습니다.
| run (attempt) | SHA | 위치 | test |
|---|---|---|---|
| 37214499584 (1) | PR #398 | Linux shard 1, :80 -> :99 |
With no workspace bound, Herdr binds the unbound one already at the checkout, and Hide leaves its name |
| 37182041622 (1) | main 987778a | Linux shard 1, :163 -> :176 |
A new tab in a plain folder opens one marked workspace and the next tab reuses it |
| 37180917551 (1) | PR #380 50861a0 | Linux shard 1, :80 |
With no workspace bound, … (attempt 2는 통과) |
PR #380은 같은 SHA에서 attempt 1 실패, attempt 2 통과였으므로 flaky로 확인됩니다.
Windows web/e2e/s2.spec.ts:138의 ⌥T 뒤 toHaveCount(4)에서 Received 3이 났다는 제보가 있습니다(같은 모양의 탭 하나 유실로 보임, 이 issue 작성 시 run 링크는 확인하지 못함).
관련 가능: #308 (프로젝트 메뉴에서 만든 탭이 탭 줄에 오지 않음).
What you expected
새 탭 요청 두 번은 탭 두 개가 됩니다. 사용자가 요청한 탭은 유실되지 않습니다.
Steps to reproduce
- Linux runner에서
bash scripts/verify-web.sh web e2e e2e/checkout-owner.spec.ts를 실행합니다. - 간헐적으로
:99또는:176에서 Expected 3, Received 2로 실패합니다.
로컬 재현과 원인 조사는 이 issue에서 하지 않았습니다.
원인 수정은 브랜치 fix/rapid-new-tab-intent에서 진행 중입니다.
Versions
- hide: main 987778a, PR Refresh a pane's live cwd from the agent list #380 50861a0, PR Quarantine the repeated main failures and keep the original Windows fixture error #398
- Herdr: v0.9.1 (pin)
- OS: GitHub Actions ubuntu-latest (Windows는 제보)
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingquarantineA flaky test CI leaves out of required checks until this issue is closed
Activity
Quarantine the two checkout-owner tests that lose a quick second new …
Quarantine the repeated main failures and keep the original Windows f…
yansfil commentedon Oct 4, 2026
재현 시도 기록 (원인 수정 세션, 2026-10-05)
재현 규칙(로컬, 그다음 CI dispatch 최대 2회)에 따라 시도했고 재현되지 않아 여기서 멈춥니다.
기존 실패 로그에서 확인한 것
create_tab2회 전송,tab.create.requested2회,owner.tab_created2회입니다.w1:t2,w1:t3, folder는w2:t1,w2:t2가 의도한 owner에 생성됐습니다.applied_events: 15).pane.focus.followed(Hide가 새 pane에 있다가 생성 이전 panew1:p1로 이동)와tab.visible_aligned가 기록됩니다.w1:p1을 focus하지 않았으므로, Hide가 Herdr의 현재 상태가 아닌 오래된 projection의 focus를 외부 focus로 받아들였습니다.w2:t2)이었고, 그 뒤 첫 요청의 응답이 왔으며,w2:t1에 대한view_focus.timed_out이 남았습니다.재현 시도와 결과
Herdr socket을 직접 구독한 probe에서 두
tab.create를 연달아 보내도 각 탭에tab_created,pane_created,layout_updated가 순서대로 왔습니다.다음에 필요한 것
probe/rapid-new-tab브랜치에 있습니다.replica.rsfocused_pane_for_partial_publish,session.rsreport_followed_pane_focus)입니다. 이것이 탭 유실까지 이어지는지는 아직 증명되지 않았습니다.Keep typing in the clicked Agent area after an edge drag (#414)
yansfil commentedon Oct 4, 2026
재현 성공과 원인 층 (2026-10-05)
Linux shard 1/6 순서를 여섯 벌 돌린 계측 run 37242379943의 copy 3에서
checkout-owner.spec.ts:38이 기대 4, 실제 3으로 실패했습니다.w1:t2,w1:t3)가 모두 있었습니다.w1:t2는 hided projection에서fixturecheckout이 아니라 fixture의 부모 폴더(/tmp/hide-e2e-herdr-*)라는 별도 checkout에 배정됐고, 20초 동안 그대로였습니다.cwd로 정해지고(runtime/session.rs의find_workspace_for_context), git 밖 폴더는 cwd 자체가 project 경로가 되므로, 이 pane의 cwd가 그 순간 fixture 부모 폴더로 projection에 들어왔다고 봅니다.확인했지만 이 실패를 고치지 못하는 것
agent.list의 live cwd로 pane cwd를 보정합니다. 그러나 고정된 Herdr v0.9.1의agent.list는 plain shell pane을 돌려주지 않습니다(격리 Herdr에서herdr agent list결과[],pane list에는 두 pane이 cwd와 함께 있음, 소스src/app/agents.rsagent_info는 agent terminal만 반환).agents: falsefixture의 새 탭은 Refresh a pane's live cwd from the agent list #380 경로로 보정되지 않습니다. tick 조건을 바꾸는 수정은 단위 테스트로는 맞지만 이 실패에는 효과가 없어 PR로 내지 않았습니다.pane_updated는 title, agent, metadata 변화에만 발생).아직 모르는 것
cwd_for_pane)는 live/proc/<pid>/cwd가 있으면 그것을, 없으면 요청한 cwd를 돌려줍니다.probe/rapid-new-tab에 탭별 pane cwd 기록을 추가해 두었습니다. 한 번 더 같은 계측 run을 돌리면 값을 확정할 수 있습니다.Place a tab Hide created under the checkout it was created for (#420)
Read a created tab's birth cwd as its checkout in every reader until …
Retry a failed test once in CI and file the flaky ones as issues (#419)