fix(ploeg): keep edited but unpublished writer work from counting as done #177
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "ryangr0/ploeg-acp-unpublished-edits"
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?
A writer that changed files and published nothing completed its Work
Item. resolveOutcome maps a clean exit with no pull request to
no_change_needed, and the ACP adapter itself reports no_change_needed
when no edit tool call completed, so an agent that edited through a
shell command looked like it had nothing to do. BuildMutatedWithoutPR,
which would have marked the run stuck, was never called.
The worker now records the commit a writer starts from and, when the
writer's outcome resolves to no_change_needed, compares the checkout
with it: uncommitted changes (git status, honouring .gitignore) or
commits on any local branch that are not on a remote end the Run stuck
with the paths and commits named. An unchanged checkout still completes.
The check sees edits from any tool, so BuildMutatedWithoutPR and the
changedFiles helper only it used are removed.
Rebased onto #158: worker.go keeps both the reviewed-commit checkpoint and the unpublished-work guard.
Verified with
mise run verifyon the pinned toolchain (all gates passed).Ticket: https://vikunja.webgrip.dev/tasks/1737
🤖 Generated with Claude Code