Observed twice (2026-07-21) in autonomy drain runs under Desktop scheduled-task sessions on Windows:
SessionEnd hook [node "${CLAUDE_PLUGIN_ROOT}/scripts/session-lifecycle-hook.mjs" SessionEnd] failed: /usr/bin/bash: line 1: node: command not found
Non-fatal (drain PR + evidence unaffected) but the lifecycle hook silently no-ops in every scheduled session — whatever it records is missing for exactly the unattended runs the autonomy program most wants observed. Root cause to investigate: the scheduled-task session's bash environment does not inherit the PATH entries interactive shells get (nvm/volta/winget shims). Candidate fixes: hook resolves node via an absolute path or launcher fallback; or hook degrades loudly (one-line report) instead of failing.
Related
Observed twice (2026-07-21) in autonomy drain runs under Desktop scheduled-task sessions on Windows:
Non-fatal (drain PR + evidence unaffected) but the lifecycle hook silently no-ops in every scheduled session — whatever it records is missing for exactly the unattended runs the autonomy program most wants observed. Root cause to investigate: the scheduled-task session's bash environment does not inherit the PATH entries interactive shells get (nvm/volta/winget shims). Candidate fixes: hook resolves node via an absolute path or launcher fallback; or hook degrades loudly (one-line report) instead of failing.
Related