Repository navigation
fix(tasks): a fresh attempt never reuses a branch an interrupted one left behind - #262
Merged
Merged
Conversation
…left behind On the lab, #15 (the game viewer) finished its work — build, 287 .NET and 74 Vitest tests green — and could not push: issue-15-ai-fix already existed from an attempt a restart cut short, the push was rejected as non-fast-forward, and the agent may not force-push. The server now picks the branch of a fresh attempt: the first of issue-N-ai-fix, -2 … -9 that is not on the remote (IPrCreationService.BranchExistsAsync), passed as WorkRepo.NewBranch and used throughout the prompt. Follow-ups still continue on their pull request's branch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018WAdQ7Rm24xss5QDSvXtJB
2 tasks done
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
VNChessAcademy #15 (game viewer) did all its work on the lab — build, 287/287 .NET + 74/74 Vitest, bundle 110 KB gzip — and couldn't push:
issue-15-ai-fixalready existed from an attempt a restart had cut short, so the push was non-fast-forward, and scoped autonomy rightly forbids force-push. The task ended "Couldn't finish".The server now picks a fresh attempt's branch: the first of
issue-N-ai-fix,-2…-9not on the remote (IPrCreationService.BranchExistsAsync, GitHub), passed asWorkRepo.NewBranchand used everywhere in the prompt. Follow-ups (Ask for changes / Fix checks) still continue on their PR's branch; when the check fails, the default name is kept.Test plan
FreeBranchTests: default when free / next free when taken / default when uncheckable or no ticket number.IssueWorkRevisionPromptTests: the server-picked branch is used in both prompt modes + the user message.issue-15-ai-fix-2, opens a PR.🤖 Generated with Claude Code
https://claude.ai/code/session_018WAdQ7Rm24xss5QDSvXtJB