Skip to content

fix(providers): lane worktrees branch from the integration base, not operator HEAD#1089

Merged
agents-squads[bot] merged 3 commits into
developfrom
fix/1083-worktree-integration-base
Jul 11, 2026
Merged

fix(providers): lane worktrees branch from the integration base, not operator HEAD#1089
agents-squads[bot] merged 3 commits into
developfrom
fix/1083-worktree-integration-base

Conversation

@agents-squads

@agents-squads agents-squads Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

What

Fixes #1083 — provider-lane worktrees were created from the OPERATOR's checked-out HEAD; a GLM run spawned during an unmerged fix branch produced PR #1082 mixing that branch's content into the agent's diff.

How

resolveIntegrationBase: origin/develop → origin/main → HEAD (fresh local-only repos), with a best-effort 10s fetch and stale-ref fallback offline. The provider worktree branches from it.

Verified

3 fixture tests (local-only → HEAD; develop preferred while on an unmerged branch; main fallback) + live check on this repo while ON a fix branch → origin/develop. Typecheck + build green.

🤖 Generated with Claude Code

…operator HEAD

A GLM run spawned while the operator's checkout sat on an unmerged fix
branch produced a PR mixing that branch's content into the agent's diff
(#1082). resolveIntegrationBase picks origin/develop, else origin/main
(best-effort fetch, stale-ref fallback offline), else HEAD for fresh
local-only repos, and the provider worktree branches from it.

Fixes #1083

Co-Authored-By: Claude <noreply@anthropic.com>
@agents-squads agents-squads Bot requested a review from kokevidaurre as a code owner July 11, 2026 07:32
@agents-squads agents-squads Bot enabled auto-merge (squash) July 11, 2026 07:32
@agents-squads agents-squads Bot merged commit 25ce5c9 into develop Jul 11, 2026
14 checks passed
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 80.00000% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/lib/execution-engine.ts 80.00% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant