Repository navigation
feat(computers): merge linked projects by git origin - #149
Merged
Merged
Conversation
Read normalized workspace origins through a capability-gated worker query and persist owner-scoped metadata for offline overviews. Keep original project records and conservative cross-computer presentation identities.
nixuuu
marked this pull request as ready for review
November 5, 2026 08:17
nixuuu
added a commit
that referenced
this pull request
Nov 5, 2026
…168) Stage 3 of 7 of shared configuration across linked computers. The design is in `docs/linked-computers.md`. **What changes** - **Shared:** projects (name, kind, archived, origin as identity), project settings without the workspace, and worktree settings for the account and each project, without `location`. - **Stays local:** workspaces, worktrees, worktree location, and worker-scope worktree settings. Worker records come in stage 6. - **Identity:** projects merge by known git origin, the same rule the picker uses since #149, and get aliases. Routed calls translate aliased `project_id`. Projects without an origin merge only by global id. - **Old mechanism removed:** the remaining 0050 opt-in project data is migrated. Its tables (`computer_shared_*`), its sync loop and its UI (`ShareSetting`, `ShareScope`, `SharedConfigOverview`) are removed, and so is a broken query in `moves-preview.ts`. - **UI:** shared project fields have no label. Workspaces show their computer and worker. Project fields have conflict notices with Restore. **Migration:** `0075_config_projects`. Proto (additive): `Project.global_id = 801`. **Tests:** gateway↔gateway integration covers: - project rename and settings sync; - worktree policy syncs while `location` stays local; - origin merge with aliases, and routed calls with an aliased project id; - concurrent edits with Restore; - delete with Restore; - sharing off; - the migration from 0050; - owner scoping. Full suite: 1195 passed, 0 failed. Copy audit (`docs/copy.md` §8): - "Workers" became "Workspaces". - The description is shortened to one sentence. - Scope tags are removed.
This was referenced Nov 13, 2026
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.
Stage 1 of 2 (data and protocol).
remote.origin.urlof each workspace through the process governor, with a 2 s timeout and a 30 s cache. Only the normalized identity reaches the gateway; the raw URL does not..gitand slashes are normalized. The case of the repository path still matters.0072_workspace_originstores the origin, so it is known while the worker is offline.Tests: origin normalization, merge rules, owner scoping, offline metadata, and creating a thread on the second gateway's right project.