Resume: update the working copy's remote branches first; say when -review is skipped #41
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "dario/resume-fetch"
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?
Evidence
On #28, after #38–#40 were merged,
factory resumeon run20261120-125020-implement-issue-dario-factory-27-…started a session in which the model found no merge conflict. The branch should conflict with main ininternal/config/config_test.go.The resumed working copy still had
origin/factory/issue-27-…andorigin/mainat856bb43: the remote branches from when the run started at 12:50. Sogit merge origin/maincorrectly answered "Already up to date". The agent can't fetch itself, because the working copy has no credentials. Afterwards-reviewwas skipped without a word, because the run didn't succeed.Changes
internal/dispatch: a resumed run first updates the working copy's remote branches (origin/*, withoutorigin/HEAD) to the forge's current state.url.*.insteadOf,http.proxy).cmd/factory: when-reviewis set and the run didn't succeed, the factory logs "not reviewing: -review runs only after a successful run", with the status.docs/developing-the-factory.md.Test evidence
just check: passes (gofmt, vet, staticcheck, govulncheck,go test -race ./...)TestResumeUpdatesRemoteBranches: main moves on the forge while a run waits to be resumed, and the resumed session'sorigin/mainmust equal the forge's. With the fetch pointed elsewhere, it fails:origin/main … = 79914a0…, want the forge's cb3051f….🤖 Generated with Claude Code