Skip to content

feat: enable repo management from mobile via bridge protocol#167

Merged
PureWeen merged 1 commit intomainfrom
feat/remote-repo-management
Feb 21, 2026
Merged

feat: enable repo management from mobile via bridge protocol#167
PureWeen merged 1 commit intomainfrom
feat/remote-repo-management

Conversation

@jfversluis
Copy link
Collaborator

Problem

On mobile (remote mode), the "+ Repo" button is visible but non-functional. RepoManager runs git clone locally 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

Type Direction Purpose
add_repo Client → Server Clone/fetch a repository
repo_added Server → Client Clone completed successfully
repo_progress Server → Client Stream git clone progress
repo_error Server → Client Clone failed
remove_repo Client → Server Remove a repository
list_repos Client → Server Query available repos
repos_list Server → Client List of repos response

Architecture

  • Server: WsBridgeServer delegates to RepoManager, streams progress, creates org groups
  • Client: Request/response with 5-min timeout, progress callback support
  • UI: Routes through CopilotService.AddRepoRemoteAsync/RemoveRepoRemoteAsync

Tests

12 new tests in RemoteRepoTests.cs. All 857 existing tests pass.

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>
@PureWeen PureWeen merged commit 57a66ca into main Feb 21, 2026
12 checks passed
@PureWeen PureWeen deleted the feat/remote-repo-management branch February 22, 2026 00:18
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.

2 participants