Skip to content

feat(repo_metadata): remote repo-root detection in DetectedRepositories (5c-2b) - #69

Merged
jwp2987 merged 1 commit into
mainfrom
parity-diffstate-5c2b
Aug 5, 2026
Merged

feat(repo_metadata): remote repo-root detection in DetectedRepositories (5c-2b)#69
jwp2987 merged 1 commit into
mainfrom
parity-diffstate-5c2b

Conversation

@jwp2987

@jwp2987 jwp2987 commented Aug 5, 2026

Copy link
Copy Markdown
Owner

Mirrors Warp's location-agnostic repository detection, adapted to the fork's separate-set structure so the existing local path is untouched.

  • Adds remote_repository_roots: HashSet<RemotePath> alongside the local repository_roots.
  • get_root_for_lor_path(&LocalOrRemotePath) -> Option<LocalOrRemotePath> dispatches: Local delegates to the existing get_root_for_path (wrapped in Local); Remote walks the path's ancestors on its host against the registered remote roots.
  • register_remote_repo_root(RemotePath) (populated by the remote-server layer from the daemon's RepoMetadata in 5c-2c) + remove_roots_for_host(&HostId) (on disconnect).

The 22 existing local get_root_for_path(&Path) callers are unchanged. Additive prep — the remote roots have no producer until 5c-2c wires the CWD feed.

Verification

  • repo_metadata 88 / 0 / 3 (+1 new test: remote-root registration / nested lookup / host isolation / removal)

🤖 Generated with Claude Code

…es (5c-2b)

Mirrors Warp's location-agnostic repository detection, adapted to the fork's
separate-set structure so the existing local path is untouched.

- Adds `remote_repository_roots: HashSet<RemotePath>` alongside the local
  `repository_roots`.
- `get_root_for_lor_path(&LocalOrRemotePath) -> Option<LocalOrRemotePath>`
  dispatches: Local delegates to the existing `get_root_for_path` (wrapped in
  Local); Remote walks the path's ancestors on its host against the registered
  remote roots (`find_remote_repository_root`).
- `register_remote_repo_root(RemotePath)` (populated by the remote-server layer
  from the daemon's RepoMetadata in 5c-2c) and `remove_roots_for_host(&HostId)`
  (on disconnect).

The 22 existing local `get_root_for_path(&Path)` callers are unchanged. Additive
prep — the remote roots have no producer until 5c-2c wires the CWD feed.

Verified: repo_metadata 88/0/3 (+1 new remote-root registration/lookup/host-
isolation/removal test).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012gDYSHa4oDvQbfungWwG1h
@jwp2987
jwp2987 merged commit 98a314d into main Aug 5, 2026
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.

1 participant