Skip to content

Stop the restarted hided when an agent tab groups test ends - #609

Merged
yansfil merged 1 commit into
mainfrom
fix/agent-groups-stop
Oct 6, 2026
Merged

yansfil merged 1 commit into
mainfrom
fix/agent-groups-stop

Conversation

@yansfil

@yansfil yansfil commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Summary

startGroups in web/e2e/agent-tab-groups.spec.ts returned { ...group, stop: () => { group.daemon.stop(); herdr.stop(); } }: stop closed over the original object, while "the area layout and its divider ratio survive a hided restart" sets group.daemon = await group.daemon.restart() on the returned copy.
So stop stopped the old daemon, already gone, and the restarted hided ran on until the worker exited.
On Windows it kept the checkout open, and Herdr's teardown failed to remove the fixture folder: EBUSY: resource busy or locked, rmdir '...\fixture' on both attempts in nightly run 37391023049 (Windows full, shard 1/4).
stop now reads the daemon from the object it returns.

Review

  • 조심해서 볼 파일: web/e2e/agent-tab-groups.spec.ts only; the other specs that restart hided (s3, s6, s7, cmdk, theme, view-bookmarks, ...) assign the new daemon to the variable or object their stop reads, and sidebar-menus, the other spec with a stop closure, never restarts.

Evidence

  • 확인한 것: locally on macOS (isolated Herdr and hided, main 76aef3b built in this worktree), a temporary uncommitted check after group.stop() in the restart test polled the restarted daemon's pid for 5 s. Old stop: alive in 3 of 3 runs. This change: gone in 3 of 3, and the test passes each time.
  • 확인한 것: pnpm --dir web lint (eslint and the e2e size budget) and pnpm --dir desktop typecheck pass.
  • 확인하지 못한 것: the Windows teardown itself; this test is not @platform, so after Run only the OS-difference desktop tests on Linux and Windows nightly #566 no Windows lane runs it.

startGroups returned a copy of its group with a stop closure over the
original object, so the restart test's new daemon, set on the copy, was
never stopped: it outlived the test, and on Windows its open checkout kept
the fixture folder busy when Herdr's teardown removed it (EBUSY). stop now
reads the daemon from the object it returns.
@yansfil
yansfil merged commit 07bf596 into main Oct 6, 2026
17 checks passed
@yansfil
yansfil deleted the fix/agent-groups-stop branch October 6, 2026 04:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant