Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix(autofixer): inherit PATH for nvm node/pm2 access in child processes

Adam Eivy195d178e0b20
diff --git a/.changelog/v0.13.x.md b/.changelog/v0.13.x.md
index 29a4daff9e..62b07a4f7b 100644
--- a/.changelog/v0.13.x.md
+++ b/.changelog/v0.13.x.md
@@ -211,3 +211,6 @@ This release expands the genome dashboard with comprehensive cancer predispositi
- **Fixed multiple "Not found" toast errors** appearing when navigating to the dashboard — the CosDashboardWidget and GoalProgressWidget fire API calls for supplementary data (activity calendar, learning summary, goal progress, etc.) that correctly handle missing data via `.catch(() => null)`, but the centralized `api.request()` function was showing error toasts before the error was thrown and caught
- **Added `silent` option to `api.request()`** — callers can pass `{ silent: true }` to suppress automatic toast notifications for non-critical requests, while still throwing errors for programmatic handling
- Updated CosDashboardWidget (4 API calls) and GoalProgressWidget (1 API call) to use `{ silent: true }` since these widgets gracefully degrade when data is unavailable
+
+### Autofixer — PATH Inheritance for nvm Environments
+- **Fixed `pm2 jlist` failing with "env: node: No such file or directory"** — the autofixer process spawns child shells via `exec()` that didn't inherit the nvm PATH; added `PATH: process.env.PATH` to the autofixer's PM2 env config so child processes can find node/pm2
diff --git a/ecosystem.config.cjs b/ecosystem.config.cjs
index 0f47d7286c..1ab7f209c8 100644
--- a/ecosystem.config.cjs
+++ b/ecosystem.config.cjs
@@ -69,7 +69,8 @@ module.exports = {
interpreter: 'node',
env: {
NODE_ENV: 'development',
- PORT: PORTS.AUTOFIXER
+ PORT: PORTS.AUTOFIXER,
+ PATH: process.env.PATH // Inherit PATH for nvm/node access in child processes
},
watch: false,
autorestart: true,