fix: install_project_crons does not set PATH — claude not found in cron jobs #366
Labels
No labels
action
backlog
blocked
bug-report
in-progress
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
tech-debt
underspecified
vision
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#366
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The entrypoint's install_project_crons function generates a crontab with env vars (DISINTO_CONTAINER, USER, FORGE_URL, PROJECT_REPO_ROOT) but does not set PATH. Cron's default PATH is /usr/bin:/bin which does not include /usr/local/bin where the claude binary is mounted.
This causes every cron-based agent (review-poll, dev-poll, gardener) to fail silently when they call claude -p. The review-poll logs show "review failed" with no further detail because the error goes to stderr which is lost.
This was the root cause of persistent review failures across multiple debugging sessions.
Fix
Add PATH to the crontab header in install_project_crons:
Affected files
Acceptance criteria