Skip to content

fix(daemon): bootstrap minimal config on fresh install, ensureConfigDir at startup#202

Merged
akuehner merged 1 commit into
mainfrom
fix/daemon-bootstrap-fresh-install
Jun 9, 2026
Merged

fix(daemon): bootstrap minimal config on fresh install, ensureConfigDir at startup#202
akuehner merged 1 commit into
mainfrom
fix/daemon-bootstrap-fresh-install

Conversation

@akuehner

@akuehner akuehner commented Jun 9, 2026

Copy link
Copy Markdown
Member

No description provided.

…ir at startup

On a systemd/supervisor-driven start with no prior CLI run, daemon.json may not
exist. Previously this hit process.exit(1) before any dirs were created or the
socket was bound — crash-loop with no recovery path.

Two fixes:
- ensureConfigDir() moved to daemon startup (before config read) so dirs always
  exist regardless of launch path
- Missing daemon.json (ENOENT) now bootstraps minimal defaults and writes the
  file rather than hard-exiting; other read errors still exit

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@akuehner akuehner merged commit 0c0975d into main Jun 9, 2026
@akuehner akuehner deleted the fix/daemon-bootstrap-fresh-install branch June 9, 2026 21:56
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