Remote repositories over SSH#373
Open
lmjiang wants to merge 1 commit into
Open
Conversation
…SSH) Open, browse, and work in repositories on another machine over SSH, reusing the local terminal/zmx and agent-presence machinery. - SSH transport via the ShellClient.ssh chokepoint + SSHCommand builders (ControlMaster multiplexing, login-shell wrapping) - Remote repos load as real git over SSH; sidebar Local/Remote partition; pick repos from ssh config + the host's own Supacode - Remote worktree create/list, HEAD polling, host-aware diff/PR; honors the creation prompt + base ref + fetchOrigin like local - Agent awaiting-input + notifications bridged over in-band OSC 9 (the unix socket can't cross SSH); toolbar bell surfacing + dismiss fixes - Tests cover SSH command construction, remote sidebar synthesis, base-ref/fetchOrigin resolution, OSC parse/routing Fork-only divergence (not submitted upstream).
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.
Closes #65.
First-class support for opening and working in git repositories that live on another machine over SSH — no local clone. This is the PR you invited on #372; happy to iterate on the design or reshape it however's easiest to review.
What it does
~/.ssh/confighosts, or the remote's own supacode config) — it shows in the sidebar as real git, under a Local/Remote partition.Design — reuses existing architecture, minimal new surface
ShellClient.ssh(host:)rewrites each command intossh <host> <login-shell-wrapped cmd>(ControlMaster multiplexing).GitClient(shell: .ssh(host:))then routes every git/wtshell-out over SSH with nothing else changing.remote:<dest>:<path>) never collide with local repos.Notes — open to direction
main; Persist terminal layouts incrementally and reap zmx sessions by attach state #369 merges cleanly with this.One squashed commit (~3k lines) — happy to reorganize/split however helps your review.