feat: clone a remote repository and add it as a project - #105
Merged
Conversation
Adds a "Clone from remote" action next to Add project (sidebar, bottom bar, command palette): paste a URL, pick/edit a destination folder, watch git clone progress in a small panel with inline auth/exists/ network error reporting, and land on the same registered-project state Add project produces today. Closes tempestai-dev#97
|
@HrushikeshAnandSarangi is attempting to deploy a commit to the Tempest OSS Team on Vercel. A member of the Team first needs to authorize it. |
gsvprharsha
approved these changes
Sep 1, 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.
Adds a "Clone from remote" action next to Add project (sidebar, bottom bar, command palette): paste a URL, pick/edit a destination folder, watch git clone progress in a small panel with inline auth/exists/network error reporting, and land on the same registered-project state Add project produces today.
Closes #97
What changed
src-tauri/src/git_clone.rs, new):check_clone_targetdoes a non-authoritative pre-flight check for an existing non-empty destination folder;git_clone_repospawnsgit clone --progress, streams stderr line-by-line to the frontend asgit-clone:logevents (tagged with a request id), and returns either the cloned path or the raw git stderr on failure. Follows the same "shell out to the systemgitbinary" convention as every other git command inlib.rs— no new crate dependency.src/lib/gitClone.ts): parses pasted URLs (https, ssh, and the scp-likegit@host:owner/repoform) into a default destination folder name, and classifies raw git stderr intoauth/exists/network/unknownfor the UI. Covered bysrc/lib/gitClone.check.ts.src/components/CloneRepoModal.tsx): form → streaming-progress → error-with-retry modal, modeled on the existingNewProjectModal/AtlasIndexModal. On success it hands the cloned path back to the sameopenProjectByPathflow "Add project" already uses, so registration/opening behavior is identical.WorkspaceView/LeftSidebar.tsx), plus a "Clone from Remote" entry in the command palette (CommandPalette.tsx).gh auth) — no new credential UI.Related issue
Closes #97
How was this tested
npx tsc --noEmit— clean.cargo check— clean.npm test— 11/11 self-checks pass, including newsrc/lib/gitClone.check.ts(URL parsing across https/ssh/scp-like shapes incl. self-hosted host+port, and error classification across all four categories against real git/OpenSSH stderr strings).Checklist
npx tsc --noEmitpassescargo checkpasses (if backend changed)