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
feat(daemon): on-demand lifecycle — lazy start + idle auto-stop — and a 20-30 session benchmark #53
The daemon today is manually managed: daemon install switches the status line to shared mode and the daemon runs until stopped. For users with a variable number of sessions this is all-or-nothing:
few sessions → a resident ~100 MB node process for a handful of renders per day is not worth it;
Idle auto-stop (daemon-side). The daemon exits by itself after N minutes with zero requests (default ~10, configurable). Busy periods keep it alive naturally — no thresholds, no observers.
Opt-in semantics unchanged. On-demand behavior activates only when shared mode is installed; one-shot users never spawn anything.
Effect: "few sessions" → the daemon serves the burst, then quietly disappears (zero resident RAM); "many sessions" → it stays warm the whole time and caches pay off.
Benchmark gap: 20–30 concurrent sessions
The current acceptance gates measure small warm scenarios. Add a bench scenario matching real usage:
Activity