Repository navigation
fix(autopilot): a failed fix round keeps its pull request, and the agent is told how to push - #286
Merged
Merged
Conversation
…ent is told how to push VNChess #95 / PR #97 (2026-10-24): the Coding agent's fix round tried a bare `git push` and `gh pr edit`; the scoped allowlist (git push origin <branch> only) blocked both, the run failed, and BoardTaskService marked the repo Failed and dropped the pull request link. Autopilot lost the open PR and would start the ticket over on a new branch. - A failed follow-up now leaves the change where it stood (status, branch, PR) with the reason recorded, like a plan-limited one, so Autopilot sends it back or asks a person. - The follow-up instruction names the only push that works (`git push origin <branch>`) and tells the agent to return the updated PR description in "description" (#284) instead of editing the pull request. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018WAdQ7Rm24xss5QDSvXtJB
| // It used to mark the repo Failed and drop the pull request link: Autopilot lost track of the open PR | ||
| // and started the ticket over on a new branch (VNChess #95 / PR #97, 2026-10-24). | ||
| var stood = children.FirstOrDefault(c => c.Id == outcome.SessionRepoId); | ||
| if (FailedFollowUpKeepsItsChange(change is not null, stood?.Status, stood?.PrUrl) && stood is not null) |
1 of 2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
git pushandgh pr edit. The scoped-autonomy allowlist (onlygit push origin <branch>/-u origin) blocked both, so the run failed.BoardTaskServicethen marked the repoFailedand dropped the PR link. Autopilot lost track of the open PR and would start the ticket over on a new branch.FailedFollowUpKeepsItsChange).git push origin <branch>). It tells the agent not to edit the PR and to return the updated description indescriptioninstead (feat(agents): the Coding agent writes the pull request description, and a fix round updates it #284).git pushstays blocked on purpose: run whilemainis checked out, it would push to main.Test plan
FailedFollowUpTests: proposed-change and Blocked states keep the PR; a fresh start, a missing PR, merged and failed states don't. The follow-up prompt names the push and thedescriptionfield.dotnet test --solution AgentOs.slnx -c Release: 1,769 passed, 0 failed.issue-95-ai-fixand updates PR fix(llm): fail over the key pool on transient + auth errors, not only 429 #97's description.🤖 Generated with Claude Code
https://claude.ai/code/session_018WAdQ7Rm24xss5QDSvXtJB