You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
desktop e2e의 isolate() 정리 단계(desktop/e2e/fixture.ts의 cleanup)는 hide stop을 부르고 임시 폴더를 지우지만, 앱의 kit 패스가 띄운 테스트 전용 hcoord LaunchAgent(com.hcoord.daemon.<hash>, HCOORD_HOME에서 계산한 이름)는 내리지 않습니다.
launchd 도메인은 HOME이 아니라 사용자 단위라서, 이 daemon은 운영자의 실제 gui/<uid> 도메인에 올라가고 테스트가 끝난 뒤에도 계속 돕니다. bootoutTestLabel을 직접 부르는 것은 kit을 시험하는 spec(device-kit, local-kit, server-session-search)뿐이고, isolate()를 쓰는 나머지 실행은 정리하지 않습니다.
2026-10-02에 확인한 것:
launchctl list에 com.hcoord.daemon.<hash> 10개가 떠 있었습니다.
launchctl print로 본 10개 모두 HOME/HCOORD_HOME이 $TMPDIR/hide-desktop-graph-qa-*/home이었고, 시작 시각은 2026-10-01 20:32~22:00, 약 15시간째 돌고 있었습니다.
그 임시 폴더들은 이미 지워져 있었습니다(정리 단계의 rmSync).
10개 RSS 합계는 약 214 MB였습니다(ps -o rss).
같은 날 다른 작업의 hcoord e2e가 부하 때문에 실패하고 멈췄을 때 이 daemon들이 함께 떠 있었습니다(인과는 확인하지 않음).
10개는 손으로 정리했습니다: 홈이 hide-desktop-graph-qa-*/home/.hcoord이고 그 폴더가 없는 label만 launchctl bootout했고, 운영자의 com.hcoord.daemon은 그대로 두었습니다.
What you expected
isolate()로 띄운 실행이 끝나면, 그 실행이 띄운 hcoord LaunchAgent도 내려가 있어야 합니다.
e2e 한 번이 운영자의 launchd 도메인에 아무것도 남기지 않아야 합니다(engineering principle 14, 시작한 것은 끝낸다).
Steps to reproduce
launchctl list | grep hcoord로 지금 떠 있는 label을 적어 둡니다.
isolate()를 쓰고 앱을 실행해 kit 패스가 도는 desktop e2e 하나를 돌립니다(예: kit 전용 spec이 아닌 아무 launch spec).
테스트가 끝난 뒤 다시 launchctl list | grep hcoord를 보면, 실행 전에 없던 com.hcoord.daemon.<hash>가 남아 있습니다.
isolate()의 정리 단계(또는 모든 launch가 공유하는 fixture teardown)가 자기 HCOORD_HOME에서 계산한 label을 기존 hcoordLabel / bootoutTestLabel로 내립니다. bootoutTestLabel은 이미 운영자 label을 거부합니다.
실행 전에 없던 com.hcoord.daemon.*가 실행 뒤에 남아 있으면 그 실행을 실패시키는 검사를 둡니다.
Private HOME teardown unloads only its exact owned LaunchAgent and retains recovery state when candidate exit or service unload is uncertain. Automatic fixture teardown and Node-managed worker exit use the same cleanup; hcoord daemon uninstall unloads and removes the current home plist while retaining conversation data.
Activity
Fix coordinator LaunchAgent cleanup for isolated homes (#363)
yansfil commentedon Oct 3, 2026
Resolved in PR #363, merged as eab7c1f.
Private HOME teardown unloads only its exact owned LaunchAgent and retains recovery state when candidate exit or service unload is uncertain. Automatic fixture teardown and Node-managed worker exit use the same cleanup; hcoord daemon uninstall unloads and removes the current home plist while retaining conversation data.
Evidence: five cleanup boundary regressions, eleven real private-home lifecycle/app checks, independent corrected-head review, and passing verify CI https://github.com/modakbul-gongbang/hide/actions/runs/37145677643 . No operator service was changed. The worker-exit check covers process.exit(23); SIGKILL, OOM and host loss cannot execute a Node exit callback.