Skip to content

Flaky e2e: agent-tab-groups split stops a shown pane's output in the area that lost the keyboard #303

Closed

Description

@yansfil

What happened

web/e2e/agent-tab-groups.spec.ts "Agent pointer drags split live canvases, reorder, move, cancel, resize, collapse and restore" (line 33) fails at line 64 on branches that do not touch it.
After the tab drag splits the Agent canvas into two areas, the test runs herdr pane run in the pane shown in each area and waits 5 s for the third output line in each pane's xterm.
The pane in area 0, the area that just lost the keyboard to the new area, stops receiving output partway:

  • main push run 36871271405, job 110399421070 (2026-10-01 13:51 UTC): the xterm held only the prompt fixture %, not even the echoed command.
  • run 36841045382, job 110299969871: the xterm held the echoed command and area-0-live-1, then nothing more for 5 s.

So the stall is in delivering the pane's output to the shell, not in the command reaching the shell (the second run shows the command ran).

What you expected

Both shown panes keep receiving fresh output while the other area owns the keyboard, which is what the test asserts.

Steps to reproduce

  1. pnpm --dir web exec playwright test e2e/agent-tab-groups.spec.ts:33 --repeat-each 15 against a debug hided and the pinned Herdr.

Not reproduced locally: 15 of 15 passed at a machine load average of about 23 on 14 cores, and 10 of 10 passed with the page's CPU throttled 6x through Emulation.setCPUThrottlingRate.
Seen in CI only, on the macOS web e2e shards, 2 times at line 64 among the 48 failed runs in the last 200 verify runs (checked 2026-10-01); since #294 this test runs on the Linux lane.

Versions

  • hide: main at e668d1e (failing run) and 621a38c (quarantined)
  • Herdr: v0.9.1 (the pin)
  • macOS: GitHub macOS runner

Diagnostics

What is known:

  • The failing run's hided log is line for line the same as a passing local run up to the stall: both panes of area 0 get terminal.resize_settled and terminal.resize_queued at 61x48 after the split, Herdr logs the matching client resize, and the new area's pane attaches.
    After that the failing log has nothing for the area-0 panes; no terminal.frame_geometry_mismatch was recorded.
  • ingest_terminal_session_frame (herdr-core/src/runtime/terminal.rs) drops every partial frame while the pane is in terminal_frames_need_full, and only a full frame clears it.
    The split's terminal_viewport with a changed grid inserts the pane there (runtime/events.rs, Event::TerminalViewport).
    If the full frame that Herdr sends for the resize is lost, arrives at a grid the core no longer expects, or is never sent, the pane stays frozen silently: that branch logs nothing, unlike the geometry mismatch branch.
    This is the leading hypothesis and is not confirmed.

Next:

  • Log once per hold when a partial frame is dropped waiting for a full one, and when the full frame clears it, so the next CI failure shows whether the pane was stuck there.
  • Check whether Herdr v0.9.1 answers a direct-client resize with a full frame when the grid moves twice in quick succession (the split resizes area 0 while the new area attaches).

The test is quarantined with @flaky (it runs in shard 1 of the Linux lane, but does not block verify) until this is fixed.

Activity

  1. added
    bug
    on Oct 1, 2026
  2. yansfil commented on Oct 1, 2026

    @yansfil
    ContributorAuthor

    Another occurrence after a split, this time in the desktop suite: PR #304, run 36881688728, job 110435422318 (2026-10-01 15:21 UTC), desktop/e2e/agent-tab-groups.spec.ts:8 "Agent edge drag splits the desktop column into two live tab groups", line 40.

    The test drags a tab into a second area, clicks the first pane (w1:p1), types printf 'desktop-group-live\n', presses Enter, and polls herdr pane read <pane> --source visible for the output line.
    Herdr's own screen held fixture % printf 'desktop-group-live\n for 5 s with no output line.

    This one reads Herdr's screen, not hide's xterm, so it does not fit the hypothesis above (the core dropping partial frames).
    The Herdr server log of that test (hide-e2e-herdr-3zpm5n-session.log in the run's hide-desktop-e2e-logs artifact) points at keyboard focus instead:

    • 15:21:39.467 tab.focus w1:t2, from the drop (herdr-core:tab.focus).
    • 15:21:39.486 p1 and p2 resized to 20 columns for the split.
    • 15:21:39.569 tab.focus w1:t1, the click into p1.
    • 15:21:39.701 tab.focus w1:t2 again, requested by the core 130 ms after the click while the test was typing.
    • Nothing more until the test gave up at 15:21:45.

    The typed text reached p1, since it is on p1's screen.
    The likeliest reading is that the core moved focus back to the other area's tab mid-typing, the shell followed the snapshot's focus pane, and Enter went to the other pane.
    Not confirmed: the artifact has no hided log for this test, and the other pane's screen was not captured.

    So this may be a separate product defect (focus bouncing back to the drop's area after a click into the other area) rather than the output stall here.
    The web occurrences above used herdr pane run, which does not depend on focus, and their Herdr logs show no second tab.focus.

  3. yansfil commented on Oct 4, 2026

    @yansfil
    ContributorAuthor

    Related diagnostic status from PR #372, head 659304f0120d9da76e03561fe122de11bf7843a4.

    The original macOS desktop missing-character failures remain unresolved, and this issue's output-stall hypothesis remains unconfirmed.
    The passive observer and Windows startup-readiness unit do not establish either root cause or closure.

    Current required CI remains RED on Windows (8 failed, 4 passed), although all six Linux shards and the macOS desktop lane passed.
    The unchanged Windows sidebar typing case passed, and its artifact preserves the expected received ASCII/Korean bytes and a readiness line in both panes.
    S2 now advances beyond readiness and fails on a later semicolon command in the ComSpec shell (s2.spec.ts:254-255); the other failures are a bounded fixture compiler timeout, unreadable disk state and five file-path cases.

    Remaining blocker: CI/file-fixture owning-source repairs and their normal integration, then unchanged required current-main checks and final independent review.
    Exact raw failures were sent to those existing owners; their source was preserved.
    The diagnostic branch is fully pushed, with no active owned test process.
    The earlier local CLI check remains INCOMPLETE and supplies no PASS.

    Owning-source confirmation: the CI owner checked the current fixture union at 31053e458a7231603be84e3e90f4d08664cd1d3e.
    web/e2e/s2.spec.ts and web/e2e/platform-fixture.ts are byte-identical to this head, so the S2 command incompatibility and compiler timeout have no committed repair there.
    The existing Explorer wire-path repair e4c6eda14d41acb5bc4ef66e239d97dbff52df95 is an ancestor of that CI union and is absent from this diagnostic branch; both ancestry results were checked locally.
    The remaining integration belongs to the root's existing source-union lane, and the unfixed fixture seams remain with their existing source owner.
    No source outside this four-file unit was edited.

    Original fixture integration update

    The original 14b895b00dc8c3a552a639b3a08311b962ebef6c and its e4c6eda14d41acb5bc4ef66e239d97dbff52df95 parent were integrated through ordinary merges, followed by coordinated main cab8625fa0cc9f35db3434e231cdf74728118319.
    The resulting head ca86fd21af1bebe6b811c6de6fd208a8366f8305 was pushed normally with exit 0, remote-confirmed, and the owning worktree is clean.
    All four diagnostic source blobs still match the independently cleared 659304f unit.
    S2/S3/S7 match the original committed corrections, while shell156, compiler20s, deadlines and the other protected fixture blobs remain unchanged.
    The S2 single-command unit has its separate independent source-only CLEAR.

    Fresh required verify CI is running for this integration, including Windows job 111350764930.
    Design and package checks also queued through the existing workflows.
    No result from this new run is yet a PASS claim.
    The retained prior Windows 8FAIL/4PASS, synthetic merge into prior main, compiler/unreadable-owner unknowns, original missing-p cause and local CLI INCOMPLETE remain recorded above.

    Remaining: read the actual fresh Windows/native and required CI outcomes, route any failure to its existing source owner, and satisfy the existing final integration review before the root's protected-main merge.
    No new local execution phase, new agent, operator action, assertion weakening, timeout change or production repair claim accompanies this integration.

  4. added
    quarantine
    on Oct 5, 2026
  5. yansfil commented on Oct 5, 2026

    @yansfil
    ContributorAuthor

    web journey는 #447 분할로 사라졌고, desktop의 입력이 다른 pane에 닿는 문제는 #414가 원인 수정했으며 그 뒤 재발 기록이 없어 닫습니다. 재발하면 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