fix: entrypoint-llama.sh should reset base repo to origin/main on startup #336
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#336
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 base repo at /home/agent/repos/disinto inside the agents-llama container drifts from main over time. After dev-agent runs create worktrees from branches, the base repo can end up on a stale branch. This produces noisy warnings on every poll cycle:
Worktrees are unaffected (they fetch from origin/main directly), but the drift is confusing and could cause issues if anything uses the base repo directly.
Fix
Add a reset to main at the start of entrypoint-llama.sh, after the repo clone check:
Affected files
Acceptance criteria
CI note (from prior failed attempt)
The agent-smoke.sh CI step checks function resolution — every function called in agent scripts must be defined in the script itself or in a lib/ file listed in LIB_FUNS (.woodpecker/agent-smoke.sh line 113). The prior PR failed because the branch was rebased incorrectly and carried 85 stale commits.
The actual change is small (only docker/agents/entrypoint-llama.sh). Do NOT modify .woodpecker/agent-smoke.sh or lib/ files. Just edit entrypoint-llama.sh and verify with: bash .woodpecker/agent-smoke.sh
Blocked — issue #336
ci_exhausted2026-04-07T08:30:19Z