Repository navigation
feat(hub,ui): Add a stack clones with the users Git client - #629
Merged
Merged
Conversation
A repository not on this machine yet has no folder to add. "Add a stack"
now offers the Git clients of the path menu (as checked in "Manage
programs…"): "Not cloned yet? Clone it with [GitHub Desktop] · Manage
programs…", below the folder field and in the note "No folder at …".
An https address pasted into the field is not checked as a folder but
handed to the client's clone dialog (GitHub Desktop:
x-github-client://openRepo/<url>); another address (git@…, http://) is
not handed over, and the dialog says so.
POST /hub/clone {with, url?} starts a program of the kind git without a
folder; /hub/open keeps its check. The hub takes only https://, a host and
the characters of a path: no query or fragment, which the link would read
as its own parameters.
ADR-0046, amendment 2026-11-24 (points approved by the owner that day).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 26, 2026
Merged
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.
"Add a stack" offers the Git clients of the path menu for a repository that is not on this machine yet: "Not cloned yet? Clone it with [GitHub Desktop] · Manage programs…". An
https://address pasted into the field opens the client's clone dialog with it filled in.Review card
Approved by the owner on 2026-11-24, all points (point 3 built now rather than later).
POST /hub/clone {with}starts a program of the kindgitfrom/hub/openerswithout a folder;/hub/openstays as it is./hub/openwith an optional path (would soften its "only a stack's trees" check)https://address in the field: GitHub Desktop starts withopenRepo/<url>, its clone dialog filled in. The hub checks the address (https, host, path characters only, no query/fragment); the user confirms the clone in the client.Decided on my own: the wording, the line below the field, the programs dialog opening over "Add a stack", and that a non-https address (
git@…,http://) starts the client without it, with a note.What changed
crates/devstack-hub/src/open.rs:clone(id, url)(kindgitonly) andclone_url(the address check); routePOST /hub/cloneinlib.rs.crates/devstack-desktop:github_desktop_start(Windows: the launcher without arguments; macOS:open <bundle>; Linux: none).ui/src/components/CloneWith.vueinAddStackDialog.vue;hub.cloneWith; the mock answers/hub/clone.docs/dashboard-api.md, CHANGELOG.Tests
open::tests::a_clone_url_is_https_and_a_plain_path;tests/hub.rsclone_starts_only_a_git_client_with_a_plain_address(a file manager and an address with a query are refused).AddStackDialog.test.ts: only Git clients offered, started without an address; an https address goes to/hub/cloneand is not inspected as a folder; an ssh address is not handed over; an unchecked client leaves "Manage programs…"; no Git client, no line.🤖 Generated with Claude Code