feat: enable repo management from mobile via bridge protocol#167
Merged
feat: enable repo management from mobile via bridge protocol#167
Conversation
Add bridge messages for repo operations so mobile (remote mode) clients can add and remove repositories on the desktop server: - AddRepo/RepoAdded/RepoProgress/RepoError: clone with progress streaming - RemoveRepo: remove repo and optional group cleanup - ListRepos/ReposList: query available repos Server-side: WsBridgeServer delegates to RepoManager, streams git clone progress to the client, and creates organization groups. Client-side: WsBridgeClient uses request/response pattern with 5-min timeout for clone operations. SessionSidebar now routes through CopilotService.AddRepoRemoteAsync/RemoveRepoRemoteAsync which delegates to bridge in remote mode or RepoManager locally. Includes 12 new tests for payload serialization and stub verification. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.
Problem
On mobile (remote mode), the "+ Repo" button is visible but non-functional.
RepoManagerrunsgit clonelocally which does nothing useful on a phone.Solution
Added bridge messages for repo operations so mobile clients can manage repos on the desktop server:
New Bridge Messages
add_reporepo_addedrepo_progressrepo_errorremove_repolist_reposrepos_listArchitecture
WsBridgeServerdelegates toRepoManager, streams progress, creates org groupsCopilotService.AddRepoRemoteAsync/RemoveRepoRemoteAsyncTests
12 new tests in
RemoteRepoTests.cs. All 857 existing tests pass.