Skip to content

fix(lanes): add history entry when merging lanes without snap#10149

Merged
davidfirst merged 3 commits intomasterfrom
fix/lane-history-merge-entry
Jan 8, 2026
Merged

fix(lanes): add history entry when merging lanes without snap#10149
davidfirst merged 3 commits intomasterfrom
fix/lane-history-merge-entry

Conversation

@davidfirst
Copy link
Copy Markdown
Member

Summary

  • Add a merge from "scope/lane" history entry when merging one lane into another
  • Fix lane history import to merge with existing local history instead of overwriting it

Problem

When merging one lane into another without creating a snap (fast-forward merge), no history entry was recorded. Additionally, running bit lane history would import the remote lane history and overwrite local entries.

Changes

  • merging.main.runtime.ts: Add history entry when saving lane during merge
  • scope-components-importer.ts: Merge imported lane history with existing local history
  • New e2e test to verify the fix

When merging one lane into another without creating a snap (fast-forward merge),
no history entry was recorded. This adds a 'merge from "scope/lane"' entry
to the lane history during merge operations.

Also fixes lane history import to merge with existing local history instead
of overwriting it, which was causing locally-created history entries to be lost.
Copilot AI review requested due to automatic review settings January 8, 2026 21:34
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds history tracking for lane merge operations and fixes how imported lane histories are handled. When merging one lane into another without creating a snap (fast-forward merge), a history entry is now recorded. Additionally, when importing lane history, it now merges with existing local history instead of overwriting it.

Key Changes

  • Lane merges now create a history entry with the message format "merge from 'scope/lane'"
  • Imported lane histories are merged with existing local histories instead of overwriting them
  • E2E test added to verify history entries are created during fast-forward lane merges

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
scopes/component/merging/merging.main.runtime.ts Adds lane history entry when saving merged lane
components/legacy/scope/component-ops/scope-components-importer.ts Merges imported lane history with existing local history instead of overwriting
e2e/harmony/lanes/lane-history-merge.e2e.ts New e2e test verifying history entries are added during lane merges

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings January 8, 2026 21:40
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@davidfirst davidfirst enabled auto-merge (squash) January 8, 2026 22:03
@davidfirst davidfirst merged commit 3060ad3 into master Jan 8, 2026
18 checks passed
@davidfirst davidfirst deleted the fix/lane-history-merge-entry branch January 8, 2026 22:26
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.

3 participants