Skip to content

session-lifecycle hook: node not found on PATH in scheduled-task bash sessions #811

Description

@kyle-sexton

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readyFully specified and briefed; eligible for autonomous pickup from the frontier.priority: mediumReal value, no hard deadline; normal backlog flow.

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions