Skip to content

fix: preserve lockfiles when refreshing dependency branches - #1472

Merged
chrisbbreuer merged 3 commits into
mainfrom
codex/preserve-refresh-lockfiles
Nov 27, 2026
Merged

chrisbbreuer merged 3 commits into
mainfrom
codex/preserve-refresh-lockfiles

Conversation

@chrisbbreuer

Copy link
Copy Markdown
Member

Refresh an existing dependency branch using the exact remote ref advertised before preparing the commit. This works in a main-only clone without a remote tracking ref for the bot branch. A failed Git branch write now exits without retrying through an API path that would discard the lease and regenerated lockfiles. The existing workflow-permission retry still applies.

A disposable bare remote covers a normal refresh from a main-only clone and a concurrent branch write after the lease was observed. The old provider failed both cases. The fixed provider writes both lockfiles on refresh and preserves the competing remote commit.

  • 2,472 tests passed.
  • Pickier and TypeScript passed.
  • HQ.support's manifest-only fallback failed a frozen Bun install. The same manifests passed when paired with the original regenerated lockfiles.

Closes #1470.

HQ.support proof

@chrisbbreuer
chrisbbreuer merged commit 05abd20 into main Nov 27, 2026
6 checks passed
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.

Keep regenerated lockfiles when a dependency branch refresh loses its Git lease

1 participant