Repository navigation
Description
What happened
During the 2026-09-28 batch (PRs #221 to #230) the web shell job failed on at least one attempt for five of the nine PRs.
Each time, rerunning only the failed job passed at the same commit, with no code change.
The failures happened on the GitHub-hosted macos-15 runners, not on a developer machine.
| Spec | Symptom | Runs |
|---|---|---|
e2e/agent-close-contract.spec.ts:13 |
enterWorkspace (e2e/wire.ts:70) clicks an Overview card that keeps detaching from the DOM until the 180 s test timeout |
36374031886 attempt 1 (#221), 36378156079 attempt 1 (#222), 36364461551 (prd/agent-tab-groups, before #221 existed) |
e2e/agent-tab-groups.spec.ts:33 |
terminal_resize sent 4 times where 2 are expected during a drag preview; the log shows a WebSocket reconnect mid-drag that resends the resize |
36374277537 attempt 1 (#222), 36378156079 attempt 1 (#222) |
e2e/agent-tab-groups.spec.ts:203 |
[data-pane-view="w1:p2"] is not found after the delegated chip click (line 217) |
36375722762 attempt 1 (#223) |
e2e/s2.spec.ts:39 |
the new tab reads zsh before its Tab 2 label arrives (line 109) |
36385808148 attempt 1 (#229) |
e2e/palette.spec.ts:28 |
failed once on main |
36363700277 (main at 7f1d1e7) |
e2e/tab-names.spec.ts:9 |
failed once | 36335634921 (prd/agent-tab-groups) |
Every rerun costs about 20 minutes of the web shell job, and a PR that has to merge main again pays it again.
Locally the same specs passed with --repeat-each 2, so they appear to need a loaded runner.
What you expected
A spec passes or fails the same way on every attempt at the same commit, so no PR needs a rerun to merge.
Steps to reproduce
- Open any of the runs above and read the failed attempt's
web shelllog. - Rerun the failed job at the same commit; it passes.
Notes
The failures fall into two shapes: a wait on state that a snapshot or a WebSocket reconnect can reset (the detaching card, the resize count, the focus attribute), and a label assertion racing an asynchronous rename.
Fix each shape once, by waiting on the state the operator would see rather than adding delays or retries (engineering principle 13).
Versions
- hide:
mainat 25a2eba - Herdr: 0.9.1
Activity
yansfil commentedon Oct 1, 2026
Linux evidence:
agent-close-contract.spec.ts:13now fails on the Linux web e2e lane too, with a different symptom from the macOS one above.close_panesent for the replacement pane, then the pane was still in Herdr's snapshot after 5 s.pane.close.requestedfor w2:p2, then 20 ms laterrecent_closed.close_failed"replacement_failed: The replacement shell could not be placed; the original tab was not closed", thenboundary.roots4 then 3.That error is
ingest_close_replacement(herdr-core/src/runtime/agent_close.rs): after ingesting the fresh projection that holds the new replacement tab, the Agent layout has no display for it.The previous step (closing the original tab) had just succeeded 0.6 s earlier with the same path, so the first replacement was placed and the second was not.
enterWorkspacepassed.Nothing recorded why the tab was missing, so the spec is tagged
@flakyunder this issue and the core now logsclose.replacement_unplacedwith whether the tab was in the projection and had a layout read; the next failure's hided log names the branch.A second Linux failure, #308, has the same shape (a tab the daemon created never reaches the strip).
Fix the web and desktop e2e flakes at their causes (#310)
Split four long e2e journeys into one-contract specs (#447)
Retry a failed test once in CI and file the flaky ones as issues (#419)
Send local Herdr tab and pane controls through one ordered lane (#438)
yansfil commentedon Oct 5, 2026
묶음 issue의 하위 원인은 #249, #310이 고쳤고, 마지막 journey(agent-close-contract)는 #447에서 3개 spec으로 나뉘었습니다. 그 후속인 마지막 pane spec은 #501이 맡습니다. 재발하면 CI의 retry 분류가 새 issue를 엽니다.
fix: keep a control focused after a select closes when its late hand-…