Skip to content

fix: quiet systemd probe on non-systemd hosts; onboarding skill accuracy#6

Merged
ofekby merged 1 commit into
mainfrom
fix/onboarding-systemd-noise
Jun 1, 2026
Merged

fix: quiet systemd probe on non-systemd hosts; onboarding skill accuracy#6
ofekby merged 1 commit into
mainfrom
fix/onboarding-systemd-noise

Conversation

@ofekby
Copy link
Copy Markdown
Member

@ofekby ofekby commented Jun 1, 2026

Fixes onboarding friction hit in a sandbox (no systemd user session).

Changes

  • src/lib/supervisor/systemd.ts — the systemctl/loginctl probes used to logger.warn({ err }, …) on every failure, dumping a full error object + stack trace to stderr whenever systemd isn't usable (no systemctl on PATH, no user session bus — sandboxes/containers/CI/non-systemd distros). Added isSystemdUnavailable(); that expected case now logs at debug, and warn is reserved for genuinely unexpected failures. dial doctor and dial wait-for no longer print a scary systemctl trace on those machines (the status correctly falls through to "not running" → dial wait-for long-polls the API).
  • skills/dial-cli/SKILL.md — onboarding flow now shows the required --inbound-instruction for new accounts, and notes the dial listen install supervisor prerequisite (launchd on macOS, systemd --user on Linux) plus the graceful degradation (inbound still works via dial wait-for).
  • Version bump 0.13.00.13.1 (CI gate).

Verification

npm run build clean; npm test — 51 pass / 0 fail (skill tarball repacked via build:skill).

🤖 Generated with Claude Code

- supervisor/systemd: stop dumping a full error/stack trace via logger.warn
  when systemd simply isn't available (no systemctl on PATH, no user session
  bus — sandboxes/containers/CI/non-systemd distros). Detect that case and log
  at debug; keep warn only for genuinely unexpected failures. `dial doctor` and
  `dial wait-for` no longer print a scary systemctl trace on such machines.
- SKILL.md: onboarding flow now shows the required `--inbound-instruction`
  (new accounts) and notes the listen-service supervisor prerequisite
  (launchd/systemd), with the graceful `dial wait-for` API-polling fallback.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@ofekby ofekby merged commit 9c2b2a1 into main Jun 1, 2026
2 checks passed
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