Skip to content

feat(projects): show live git clone progress - #520

Merged
nixuuu merged 1 commit into
devfrom
feat/clone-progress
Nov 10, 2026
Merged

nixuuu merged 1 commit into
devfrom
feat/clone-progress

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 10, 2026

Copy link
Copy Markdown
Member

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_v1 gates 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

  • Passed bun install, bun run gen:check, bun run typecheck, bun run lint, bun run format:check and bun run --filter @canopy/web build.
  • Ran TMPDIR=/var/tmp bun run check:tmp <file> serially for clone-progress, clone-progress-linked, process-governor, add-project, project-workspaces and linked-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.
  • Inspected the browser on private ports at desktop, narrow and phone widths in light/dark: project/workspace cloning, scrolling/gutter, authentication and bad-URL failures, cancellation/cleanup, and successful registration. Used a local bare repository with 39 MiB of Git data and controlled Git diagnostics to keep progress/failure states visible. Screenshots remain outside the repository.
  • EAS CLI 27.4.1 production fingerprints are unchanged: iOS 6ddec9ef559ee0095ac33e94ff9418a942053b17, Android 5f6eae3ab278f1cd543e9ed763f923a319b65ec9. 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

@nixuuu
nixuuu force-pushed the feat/clone-progress branch from a4a68ab to fe841ed Compare November 10, 2026 16:59
@nixuuu
nixuuu merged commit 22d2194 into dev Nov 10, 2026
9 checks passed
@nixuuu
nixuuu deleted the feat/clone-progress branch November 10, 2026 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant