fix: prepend claude CLI install paths to subprocess PATH (env-sanitizer)
Root cause: worker launched by Claude Desktop inherits a narrow PATH that omits ~/.local/bin and ~/.bun/bin, so SDK subprocesses fail with "Claude executable not found" — observations pile up in the queue but are never processed, producing the "only my messages get recorded" symptom that patching session reset logic could not fix. env-sanitizer now prepends the common install locations (~/.local/bin, ~/.bun/bin, ~/bin, /opt/homebrew/bin, /usr/local/bin on Unix; matching Windows locations) to PATH before spawning SDK subprocesses, so the worker can locate the claude binary regardless of launch context. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user