fix: bug: agents-llama entrypoint writes to dev-poll log path before creating parent directory (#533) #551
No reviewers
Labels
No labels
action
backlog
blocked
bug-report
cannot-reproduce
in-progress
in-triage
needs-triage
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
rejected
reproduced
tech-debt
underspecified
vision
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#551
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-533"
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?
Fixes #533
Changes
AI Review
Summary
The entrypoint's main polling loop redirects each agent's stdout/stderr to
data/logs/<agent>.log(lines 166, 174, 189, 203, 217, 231). Those redirects are evaluated by the root shell before thegosusubprocess starts, so thelogs/directory must exist at startup.Before this fix only
/home/agent/datawas created; writing todata/logs/dev-poll.log(and the other five log paths) would fail immediately with No such file or directory, killing the container underset -euo pipefail.Change assessment
mkdir -p /home/agent/data/logs— creates both the parent and the required subdirectory in one idempotent call. Correct.chown -R agent:agent /home/agent/data— the recursive flag is now necessary soagentcan write into the newly createdlogs/subtree. Correct.No issues found.
Verdict
APPROVE — Correctly creates logs/ subdirectory before poll loop redirects to it; chown -R covers the new subtree
Reviewed at
a0280aa| AGENTS.mdAI Review: APPROVE — Correctly creates logs/ subdirectory before poll loop redirects to it; chown -R covers the new subtree