Skip to content

[Feature]: Mobile - clone a new repository from a GitHub URL #21669

Done

Description

@dudupii

Problem or use case

On mobile, the new-workspace sheet only creates git worktrees, and its Project picker only lists repositories already registered on the paired host. Pasting a GitHub URL into the source field just smart-matches against those known repos — if the host has never cloned the repository, the URL leads nowhere.

So starting work on a new repository from the phone always requires going to the desktop first (sidebar → Add Repo → paste URL → clone), or a terminal on the host. The desktop already has the full clone flow (cloneRemoteRepo with progress events); mobile has no entry point to it.

Proposed solution

Add a "Clone from URL" entry to the mobile new-workspace flow — either an option in the Project picker of the create sheet, or a paste intent that offers "clone " when the pasted URL matches no known repo.

  • Mobile sends only the URL plus a destination path (defaulting to the host's usual repos root) — both plain text, no host filesystem browsing needed.
  • The host reuses the existing clone path and reports progress, mirroring the desktop Add Repo flow.
  • After the clone lands, continue into the existing post-create flow (name → agent → setup script → launch).

Two constraints worth noting:

  • The clone request runs on the paired host and is not in the mobile RPC allowlist today, so the entry should be capability-gated and hidden against older hosts rather than erroring.
  • Cloning over SSH can legitimately exceed the generic 30s mobile RPC timeout (the worktree-create flow already handles this class of long request), so clone should ride the same long-request treatment.

Alternatives or additional context

Current workaround: create or clone the workspace on desktop, then open it from mobile — folder workspaces created on desktop are already visible and usable on mobile, so it's only the creation entry that's missing there too. Full folder-workspace creation on mobile (browsing host directories) would need a new directory-browsing RPC surface and is deliberately out of scope for this request.

Activity

  1. dudupii commented on Nov 26, 2026

    @dudupii
    ContributorAuthor

    Real-device proof of this flow, implemented in #21698 (screenshots from a real Android phone):

    Step Screenshot
    + → New workspace / Add project plus sheet
    Add project entries entries
    Browse folder browse
    Clone from URL clone
    Create new project create
  2. self-assigned this
    on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions