Skip to content

Let gx doctor auto-finish agent branches without a GitHub remote#405

Merged
NagyVikt merged 1 commit intomainfrom
agent/claude/doctor-auto-finish-local-merge-2026-04-23-21-47
Apr 23, 2026
Merged

Let gx doctor auto-finish agent branches without a GitHub remote#405
NagyVikt merged 1 commit intomainfrom
agent/claude/doctor-auto-finish-local-merge-2026-04-23-21-47

Conversation

@NagyVikt
Copy link
Copy Markdown
Collaborator

Automated by gx branch finish (PR flow).

autoFinishReadyAgentBranches now falls back to a local direct merge
when origin or gh is unavailable, instead of disabling the sweep, so
the doctor flow can commit, merge, and prune agent branches on repos
that have no GitHub-backed PR surface. The dirty-worktree skip is
replaced by an auto-commit step so pending payloads land on the base
branch automatically, matching the behavior of gx branch finish.

agent-branch-finish.sh also learns to merge into an already-checked-out
base worktree when running in --direct-only --no-push mode, avoiding
the "branch already used by worktree" failure that blocked local-only
finishes whenever the primary checkout sat on the target base.
@NagyVikt NagyVikt merged commit fbbaa1e into main Apr 23, 2026
@NagyVikt NagyVikt deleted the agent/claude/doctor-auto-finish-local-merge-2026-04-23-21-47 branch April 23, 2026 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant