Skip to content

feat(worktrees): show checkout timing when git times out - #1070

Merged
nixuuu merged 1 commit into
devfrom
feat/worktree-timeout-details
Nov 21, 2026
Merged

nixuuu merged 1 commit into
devfrom
feat/worktree-timeout-details

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

What changed

  • Show the effective checkout limit and the measured time when the Git timeout triggers. The measurement ends when Canopy requests interruption, before it waits for process exit or starts cleanup.
  • Carry the detail through the existing thread preparation errors and spawn_thread. The gateway accepts only the fixed timeout wording and numeric durations for spawn_thread. Unmeasured timeouts, output limits, other Git errors and worker RPC deadlines keep their existing messages.
  • The checkout limit policy and cleanup logic stay as before.

Thanks @janek-normalnie for reporting the interrupted Windows checkout and suggesting both values.

Related: #982

Verification

  • Local on nix-pc after rebasing onto fix(worktrees): allow four minutes for checkout #1071, at 86fa1f0685dedbc1871251fb1d70ebdc923ba288: 53 tests passed with check:tmp across process governor, worktree creation failures, worktree automation, thread creation progress and worktrees. This covers 1.5 s and 3.5 s limits, a deliberately delayed timeout callback, a real checkout timeout through the worker link to the UI stream, saved failure and spawn_thread, redaction and distinct failure messages, and a successful checkout past the old 90-second worker deadline.
  • Integration test typecheck, lint and formatting of edited TypeScript, and the Git diff check passed.
  • Chromium, before the rebase: started a new worktree in an isolated dev stack and confirmed both values under Show details. Checked short, typical and long durations at 390 and 800 px in both themes, plus the actual flow at desktop width. The existing composer intercepted a pointer click at 1280 × 577. Keyboard activation opened the disclosure.
  • Native mobile receives the same failure through CreateThreadWithProgress and renders its detail in Show details. Verified the stream and traced the native code path. Manual Android verification was unavailable because device automation could not establish ownership of the emulator.
  • GitHub CI owns the full gate.

Copy audit

“Git exceeded its time limit.” → “Git timed out after 60.012 s while creating the worktree. The limit was 60 s.” Two short sentences name the operation and the limit. The existing failure instructions and Return to draft action stay available. The detail uses the existing disclosure, worktree terminology and spaced time units. All durations wrap in the checked widths, and no meaning depends on color or icons.

@nixuuu
nixuuu enabled auto-merge (squash) November 21, 2026 11:54
@nixuuu
nixuuu disabled auto-merge November 21, 2026 12:06
Report the applied checkout limit and measured time at the interruption request. Preserve sanitized refusals for other worker errors.

Related: #982
@nixuuu
nixuuu force-pushed the feat/worktree-timeout-details branch from 92d0bda to 86fa1f0 Compare November 21, 2026 12:08
@nixuuu
nixuuu enabled auto-merge (squash) November 21, 2026 12:10
@nixuuu
nixuuu merged commit ea4f106 into dev Nov 21, 2026
30 of 32 checks passed
@nixuuu
nixuuu deleted the feat/worktree-timeout-details branch November 21, 2026 12:23
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