Repository navigation
fix(continuum-update): handle divergent-branches by fast-forwarding to origin/main (Carl-UX #101) - #1031
Merged
Conversation
…o origin/main Carl-UX QA #101 (codex-b741, 2026-05-03 18:33Z): Joel's canary install hit `fatal: Need to specify how to reconcile divergent branches` on every `continuum update`. Pre-fix `cmd_update` ran `git pull origin main` unconditionally — fails whenever the local install dir has any commits not on main, which happens with bare-repo + worktree setups, agent tab branches, or any user who's just touched something locally. The install dir is a managed deployment, not a workspace for local edits. If users want to keep local commits they should be working in a separate worktree (the bare-repo+worktree pattern already supports this). For the install dir, the contract is: align with origin/main. Fix: - `git fetch origin main` first (no merge conflict surface) - Stash uncommitted/staged changes with timestamped name as a safety net (so accidentally-edited files don't vanish without trace) - `git reset --hard origin/main` to align with remote - Both git commands fail-fast with a clear error if they break The stash name lets the user recover with `git stash list` + `git stash apply stash^{/continuum-update-backup-...}` if they had real work in flight. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
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
Carl-UX QA #101 (codex-b741, 2026-05-03 18:33Z): Joel's canary install hit
fatal: Need to specify how to reconcile divergent brancheson everycontinuum update.Pre-fix
cmd_updaterangit pull origin mainunconditionally — fails whenever the local install dir has any commits not on main, which happens with bare-repo + worktree setups, agent tab branches, or any user who's just touched something locally.Fix
The install dir is a managed deployment, not a workspace for local edits. Contract: align with origin/main.
git fetch origin main(no merge conflict surface)git reset --hard origin/mainto align with remoteThe stash name lets users recover with
git stash apply stash^{/continuum-update-backup-...}if they had real work in flight.Verification
bash -n bin/continuumsyntax-clean🤖 Generated with Claude Code