Repository navigation
Never offer the Primary Rig's own machine to bring over from itself - #220
Merged
Merged
Conversation
Joshua's Windows PC, the Primary Rig, showed "Bring over from the Primary Rig" for its Reaper key map and menus. Two causes: - "Add" on a suggestion from another machine saved that machine as the new version's source, so adding one plug-in from the Mac made the Mac the Primary machine. add_to_golden now keeps the Primary machine, and the store reads older "Added ... from ..." versions as their parent's, so existing rigs are right again without a migration. - On the Primary machine, files edited here after the version was saved were offered for Bring over, which would undo the newer change. They now get a "Changed here since Primary Rig vN" card with Update Primary Rig, which adds this machine's copies to a new version. Compare's machine list also puts "Primary" first so it isn't cut off. Decision #123. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Se1kg5gSsJs5yj2HeacfG
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.
Requested by Joshua · project thread
Joshua's Windows PC is the Primary Rig, but its Get Up To Speed showed "Bring over from the Primary Rig" (Reaper: 1 key map, 1 menus and toolbars) with a score of 99.
What changed
Two causes, both fixed (decision #126; renumbered from #123 after the home-network PRs took #123-#125):
add_to_goldensaved the adding machine as the new version'ssource_machine_id, so adding one plug-in (e.g. MS-20 V from the Mac) made the Mac "the Primary machine" and the PC an ordinary one. It now keeps the previous version's source.Store::golden/golden_historyread older "Added … from …" versions (also imported ones) as their parent's Primary machine, so rigs that already have the wrong source are right again without a migration. Only a whole save (Make Primary, Update Primary Rig from this machine) moves it.FileToBring.newer_heremarks a copy here that is newer (or has an unknown time);bring::split_changed_heresets those apart on the Primary machine, so neither the Bring over card nor Compare's Bring over lines offer them. Instead a Changed here since Primary Rig vN card offers Update Primary Rig (keep_changes_in_golden, which goes throughadd_to_goldenso plug-ins the Primary Rig got from elsewhere stay). Files only the Primary Rig has, or whose Primary Rig copy is newer, are still brought over.Also: Compare's machine list puts "Primary" first so the narrow line no longer cuts it off ("Windows · this machine · Primary machine" showed as "Windows · t…").
Screenshots (mocked IPC):
/mnt/project-files/screenshots/primary-bring-over/(before/after, dark/light).How it was tested
cargo test --workspace, clippy-D warnings, fmt; new tests:adding_from_another_machine_keeps_the_primary_machine(store),the_primary_machine_keeps_what_it_changed_since(bring), Primary machine kept in the existing add-to-golden testapp/src-tauri: clippy-D warnings+ tests (Linux);npm run buildChecklist
docs/decisions.md(Release 0.4.6: keep files in sync through the cloud folder #126)🤖 Generated with Claude Code
https://claude.ai/code/session_013Se1kg5gSsJs5yj2HeacfG