fix(daemon): filter missing service path fallbacks

This commit is contained in:
Peter Steinberger
2026-04-27 23:16:04 +01:00
parent bf4306d1b0
commit abf5dea7dd
4 changed files with 147 additions and 18 deletions

View File

@@ -455,6 +455,9 @@ That stages grounded durable candidates into the short-term dreaming store while
</Accordion>
<Accordion title="17. Gateway runtime best practices">
Doctor warns when the gateway service runs on Bun or a version-managed Node path (`nvm`, `fnm`, `volta`, `asdf`, etc.). WhatsApp + Telegram channels require Node, and version-manager paths can break after upgrades because the service does not load your shell init. Doctor offers to migrate to a system Node install when available (Homebrew/apt/choco).
Newly installed or repaired services keep explicit environment roots (`NVM_DIR`, `FNM_DIR`, `VOLTA_HOME`, `ASDF_DATA_DIR`, `BUN_INSTALL`, `PNPM_HOME`) and stable user-bin directories, but guessed version-manager fallback directories are only written to the service PATH when those directories exist on disk. This keeps the generated supervisor PATH aligned with the same minimal-PATH audit doctor runs later.
</Accordion>
<Accordion title="18. Config write + wizard metadata">
Doctor persists any config changes and stamps wizard metadata to record the doctor run.