Skip to content

Start daemon on install so hooks work immediately#806

Merged
backnotprop merged 3 commits into
feat/single-server-runtimefrom
feat/daemon-on-install
May 28, 2026
Merged

Start daemon on install so hooks work immediately#806
backnotprop merged 3 commits into
feat/single-server-runtimefrom
feat/daemon-on-install

Conversation

@backnotprop
Copy link
Copy Markdown
Owner

Summary

  • Install scripts now start the daemon in the background after placing the binary
  • improve-context and future pre-session hooks have a daemon to talk to from the first invocation
  • Mark backlog items Claude/spec driven plan system wx oxs #6 (smart session opening — already implemented) and update errors #14 (daemon on install) as DONE

Changes

  • scripts/install.sh"$INSTALL_DIR/plannotator" daemon start >/dev/null 2>&1 &
  • scripts/install.ps1Start-Process with -WindowStyle Hidden -ErrorAction SilentlyContinue

Test plan

  • bun run typecheck passes
  • bun test passes (1,331 tests)
  • install.sh syntax verified
  • PS1 uses -ErrorAction SilentlyContinue to handle antivirus/SmartScreen locks

Install scripts now start the daemon in the background after placing the
binary. This ensures improve-context and future pre-session hooks have a
daemon to talk to from the first invocation.

- install.sh: background start with >/dev/null 2>&1 &
- install.ps1: Start-Process with -WindowStyle Hidden -ErrorAction SilentlyContinue
- Mark backlog items #6 (smart session opening) and #14 (daemon on install) as DONE
On Windows the running exe is file-locked; on Unix the old daemon keeps
serving stale code from memory. Now both installers stop any existing
daemon before replacing the binary, then start a fresh one after.
Start-Process -Wait has no timeout. If the stop command hangs (antivirus,
debugger), the installer freezes. Now uses -PassThru with WaitForExit(10s)
and Kill() fallback so the installer always continues.
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