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
{{ message }}
Repository navigation
holders: the first holder is found only by a sessions/ file event; a lost FSEvent hides a Terminal-held session #889
src/engine-host/fs/holders.ts starts its liveness poll (POLL_MS 2 s) only while at least one holder is known (:298). Until then the first holder, such as a Terminal that takes a session, is learned only from the sessions/ file watch (src/engine-host/fs/service.ts:977, watcher.ts:157). If that FSEvent comes late or never, MAWS doesn't see the session as held until something else changes in sessions/.
Evidence
CI-opt measured the mini on 2026-11-28 at 02:44Z with a 40-file fs.watch probe:
events delivered
median
p90
max
MacBook
40 of 40
10 ms
17 ms
mini
35 of 40 (5 never arrived within 10 s)
846 ms
3.5 s
4.9 s
The mini's fseventsd sits at 2.1 GB resident and about 80% CPU after 30 days up.
The matching failure is e2e/lane-a.spec.ts:175/:184 drive(): session.get holder.kind stays "none" for 10 s. It failed in 15 scenes, in 3 Actions jobs on the mini, across three unrelated branch families. Hosted lane-a was always green. Details are in CI-opt's collect-1128-read.md, section 2.
A person on a machine whose fseventsd degrades meets the same thing: a session held in Terminal is not shown as held.
The work
Give the holder registry a way to find its first holder that doesn't depend on one event arriving. For example, a slow idle poll while no holder is known, cheap enough to run always: one readdir of sessions/ every few seconds. Or rescan on the next poll tick after any watch silence. Choose the interval from the cost.
Add a unit test that drops the sessions/ event and proves the holder is still found within the bound. Keep the watcher as the fast path.
Activity
SSFSKIM commentedon Nov 28, 2026
[board] in-progress: architect's builder
holders: the idle poll retries a failed read and sees past one bad re…
service.test: the idle-poll test's emit returns true, as HostEmit does (
holders.test: the failed-read retry test injects its error, leaving t…
Merge arch/holder-discovery: the holder registry finds its first hold…
SSFSKIM commentedon Nov 28, 2026
[board] done: landed on master 70b127f (no PR; master-first commit of arch/holder-discovery 4cf06d7)
Merge master into question-sheet-c4 (#889, the holder registry's firs…
Merge master into ux-wave/815-native-titles (#889 and since)
Merge master into ux-wave/obs4 (#889 and since)
Merge master 2f39f56 (#888; #889, the holder registry's first holder;…