Repository navigation
feat(projects): show live git clone progress - #520
Merged
Merged
Conversation
nixuuu
force-pushed
the
feat/clone-progress
branch
from
November 10, 2026 16:59
a4a68ab to
fe841ed
Compare
This was referenced Nov 13, 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.
Cloning a project or workspace now shows Git's live phase, percentage, transfer size and rate, with a collapsible log and Cancel. Failures preserve the log beside the error and Retry. The log has a fixed height, automatic scrolling and a reserved scrollbar gutter on web/desktop; mobile shares the same lifecycle and status formatting.
The worker runs
git clone --progress, parses CR/LF stderr records and sends bounded, sanitized snapshots at most four times per second over the existing WorkerLink.git_clone_progress_v1gates progress/cancellation and the linked-computer route. Older workers keep the indeterminate unary flow. Proto additions are additive, WorkerLink stays at protocol 1, and frozen update contracts are unchanged.Clone deadlines are now 2 minutes without changed progress and 60 minutes overall, with matching gateway/client waits. Cancellation kills the owned process group, removes queued work immediately and cleans only the directory created by that clone. URL validation, protocol restrictions, owner scoping and linked project-sharing checks remain enforced. Polish protocol, routing and process-governor docs describe the behavior. Copy workspace has no remote-clone path.
Validation
bun install,bun run gen:check,bun run typecheck,bun run lint,bun run format:checkandbun run --filter @canopy/web build.TMPDIR=/var/tmp bun run check:tmp <file>serially forclone-progress,clone-progress-linked,process-governor,add-project,project-workspacesandlinked-projects: 33 tests passed, with clean temporary directories. Coverage includes ordering/throttling, redaction and bounds, stalled/queued/running cancellation, descendants, cleanup, retry, old workers, ownership and the two-gateway route. No real network repositories or UI tests.6ddec9ef559ee0095ac33e94ff9418a942053b17, Android5f6eae3ab278f1cd543e9ed763f923a319b65ec9. Mobile changes are JS only. Native device rendering and the Electron shell were not separately exercised; desktop uses the shared web UI. The full repository test suite was not run; the focused files above ran individually as requested.Copy audit (§8)
“Cloning on {worker}… This stops after 5 minutes.” → live Git phase/percentage/transfer status: removes the obsolete deadline and shows current activity. Added “Cancel”, “Show Git log”/“Hide Git log” and “Retry”: explicit, sentence-case actions. Failure, stall, timeout and cancellation messages state the outcome and the next action; transport details stay out of the surface text. Git's original diagnostics stay inside the optional log. Checked sentence limits, glossary, punctuation, repeated facts, accessible labels/status, and short/typical/long text at desktop and phone widths. No new glossary term, empty state or expressive copy.
Related: #500, #511, #512