Skip to content

Clean up worktrees when archiving threads - #13

Open
tim-smart wants to merge 4 commits into
t3code/truncate-mobile-footerfrom
t3code/cleanup-archived-worktrees
Open

Clean up worktrees when archiving threads#13
tim-smart wants to merge 4 commits into
t3code/truncate-mobile-footerfrom
t3code/cleanup-archived-worktrees

Conversation

@tim-smart

Copy link
Copy Markdown
Owner

Summary

  • Add server-authoritative cleanup for the last active thread linked to a worktree, while preserving shared worktrees and branches.
  • Prompt on web and mobile before removal, stop associated provider sessions, and report nonfatal cleanup failures.
  • Recreate missing worktrees when threads are unarchived and rerun project setup.
  • Remove legacy background-service and server self-update infrastructure, with related UI and documentation cleanup.

Testing

  • Added focused coverage for worktree cleanup, restoration, concurrency, projection queries, and provider shutdown behavior.
  • Added client-runtime and mobile prompt tests for archive confirmation and cleanup outcomes.
  • Not run; test execution results were not included in the supplied change details.

@tim-smart
tim-smart force-pushed the t3code/cleanup-archived-worktrees branch 2 times, most recently from 5ba5539 to 72a3336 Compare July 23, 2026 21:20
@tim-smart
tim-smart force-pushed the t3code/cleanup-archived-worktrees branch from ace56f7 to 2dae1a1 Compare July 24, 2026 00:44
@tim-smart
tim-smart force-pushed the t3code/cleanup-archived-worktrees branch 2 times, most recently from 7e08a6b to 923f77a Compare July 24, 2026 03:34
@github-actions github-actions Bot added size:XXL vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. labels Jul 24, 2026
@tim-smart
tim-smart changed the base branch from main to t3code/truncate-mobile-footer July 24, 2026 03:34
@tim-smart
tim-smart force-pushed the t3code/cleanup-archived-worktrees branch from 9f8ba9d to e59bc3a Compare July 24, 2026 08:52
@github-actions
github-actions Bot force-pushed the t3code/cleanup-archived-worktrees branch 2 times, most recently from 9defffa to a7d163e Compare July 24, 2026 14:12
@tim-smart
tim-smart force-pushed the t3code/cleanup-archived-worktrees branch from a7d163e to a23f42d Compare July 25, 2026 10:26
@github-actions
github-actions Bot force-pushed the t3code/cleanup-archived-worktrees branch 2 times, most recently from c958bb4 to e6f1b06 Compare July 27, 2026 10:08
patroza pushed a commit to patroza/t3code that referenced this pull request Jul 27, 2026
Clean up worktrees when archiving threads

Source: tim-smart#13
Source head: a23f42d
Source commits: 4a19470,1b6688aa5b641010cb2e9dad23d36d87257403ad,9ed32aa3923fb674380564b1ffcb3268290069b9,a23f42d6ac671ea36b8db5d03934c089a31be448
Imported: complete product delta from the source PR.
patroza pushed a commit to patroza/t3code that referenced this pull request Jul 27, 2026
Clean up worktrees when archiving threads

Source: tim-smart#13
Source head: a23f42d
Source commits: 4a19470,1b6688aa5b641010cb2e9dad23d36d87257403ad,9ed32aa3923fb674380564b1ffcb3268290069b9,a23f42d6ac671ea36b8db5d03934c089a31be448
Imported: complete product delta from the source PR.
@tim-smart
tim-smart force-pushed the t3code/cleanup-archived-worktrees branch from e6f1b06 to 7c4acbf Compare July 28, 2026 00:30
@github-actions
github-actions Bot force-pushed the t3code/cleanup-archived-worktrees branch from 7c4acbf to a14221b Compare July 28, 2026 03:34
@tim-smart
tim-smart force-pushed the t3code/cleanup-archived-worktrees branch 2 times, most recently from 0660f1c to 5355818 Compare July 28, 2026 22:54
@github-actions
github-actions Bot force-pushed the t3code/cleanup-archived-worktrees branch from 5355818 to 55fd8ee Compare July 29, 2026 03:38
@github-actions
github-actions Bot force-pushed the t3code/cleanup-archived-worktrees branch from 55fd8ee to d4d9bb5 Compare July 29, 2026 09:08
patroza pushed a commit to patroza/t3code that referenced this pull request Jul 29, 2026
Clean up worktrees when archiving threads

Source: tim-smart#13
Source head: a23f42d
Source commits: 4a19470,1b6688aa5b641010cb2e9dad23d36d87257403ad,9ed32aa3923fb674380564b1ffcb3268290069b9,a23f42d6ac671ea36b8db5d03934c089a31be448
Imported: complete product delta from the source PR.

(cherry picked from commit 7e02dc9)
@github-actions
github-actions Bot force-pushed the t3code/cleanup-archived-worktrees branch from d4d9bb5 to 4a51bc7 Compare July 29, 2026 11:45
patroza pushed a commit to patroza/t3code that referenced this pull request Jul 29, 2026
Clean up worktrees when archiving threads

Source: tim-smart#13
Source head: a23f42d
Source commits: 4a19470,1b6688aa5b641010cb2e9dad23d36d87257403ad,9ed32aa3923fb674380564b1ffcb3268290069b9,a23f42d6ac671ea36b8db5d03934c089a31be448
Imported: complete product delta from the source PR.

(cherry picked from commit 7e02dc9)
patroza pushed a commit to patroza/t3code that referenced this pull request Jul 30, 2026
Clean up worktrees when archiving threads

Source: tim-smart#13
Source head: a23f42d
Source commits: 4a19470,1b6688aa5b641010cb2e9dad23d36d87257403ad,9ed32aa3923fb674380564b1ffcb3268290069b9,a23f42d6ac671ea36b8db5d03934c089a31be448
Imported: complete product delta from the source PR.

(cherry picked from commit 7e02dc9)
- Prompt to remove the last active worktree when archiving
- Restore missing worktrees on unarchive and retain shared worktrees
- Stop provider sessions reliably after archival
Allow up to 30 seconds for Git worktree cleanup to complete.
@tim-smart
tim-smart force-pushed the t3code/cleanup-archived-worktrees branch from 4a51bc7 to 89c4d46 Compare July 31, 2026 00:49
patroza pushed a commit to patroza/t3code that referenced this pull request Jul 31, 2026
Clean up worktrees when archiving threads

Source: tim-smart#13
Source head: a23f42d
Source commits: 4a19470,1b6688aa5b641010cb2e9dad23d36d87257403ad,9ed32aa3923fb674380564b1ffcb3268290069b9,a23f42d6ac671ea36b8db5d03934c089a31be448
Imported: complete product delta from the source PR.

(cherry picked from commit 7e02dc9)
patroza pushed a commit to patroza/t3code that referenced this pull request Jul 31, 2026
Clean up worktrees when archiving threads

Source: tim-smart#13
Source head: a23f42d
Source commits: 4a19470,1b6688aa5b641010cb2e9dad23d36d87257403ad,9ed32aa3923fb674380564b1ffcb3268290069b9,a23f42d6ac671ea36b8db5d03934c089a31be448
Imported: complete product delta from the source PR.

(cherry picked from commit 7e02dc9)
patroza pushed a commit to patroza/t3code that referenced this pull request Jul 31, 2026
Clean up worktrees when archiving threads

Source: tim-smart#13
Source head: a23f42d
Source commits: 4a19470,1b6688aa5b641010cb2e9dad23d36d87257403ad,9ed32aa3923fb674380564b1ffcb3268290069b9,a23f42d6ac671ea36b8db5d03934c089a31be448
Imported: complete product delta from the source PR.

(cherry picked from commit 7e02dc9)
patroza pushed a commit to patroza/t3code that referenced this pull request Jul 31, 2026
Clean up worktrees when archiving threads

Source: tim-smart#13
Source head: a23f42d
Source commits: 4a19470,1b6688aa5b641010cb2e9dad23d36d87257403ad,9ed32aa3923fb674380564b1ffcb3268290069b9,a23f42d6ac671ea36b8db5d03934c089a31be448
Imported: complete product delta from the source PR.

(cherry picked from commit 7e02dc9)
patroza pushed a commit to patroza/t3code that referenced this pull request Jul 31, 2026
Clean up worktrees when archiving threads

Source: tim-smart#13
Source head: a23f42d
Source commits: 4a19470,1b6688aa5b641010cb2e9dad23d36d87257403ad,9ed32aa3923fb674380564b1ffcb3268290069b9,a23f42d6ac671ea36b8db5d03934c089a31be448
Imported: complete product delta from the source PR.

(cherry picked from commit 7e02dc9)
patroza pushed a commit to patroza/t3code that referenced this pull request Jul 31, 2026
Clean up worktrees when archiving threads

Source: tim-smart#13
Source head: a23f42d
Source commits: 4a19470,1b6688aa5b641010cb2e9dad23d36d87257403ad,9ed32aa3923fb674380564b1ffcb3268290069b9,a23f42d6ac671ea36b8db5d03934c089a31be448
Imported: complete product delta from the source PR.

(cherry picked from commit 7e02dc9)
patroza pushed a commit to patroza/t3code that referenced this pull request Jul 31, 2026
Clean up worktrees when archiving threads

Source: tim-smart#13
Source head: a23f42d
Source commits: 4a19470,1b6688aa5b641010cb2e9dad23d36d87257403ad,9ed32aa3923fb674380564b1ffcb3268290069b9,a23f42d6ac671ea36b8db5d03934c089a31be448
Imported: complete product delta from the source PR.

(cherry picked from commit 7e02dc9)
patroza pushed a commit to patroza/t3code that referenced this pull request Jul 31, 2026
Clean up worktrees when archiving threads

Source: tim-smart#13
Source head: a23f42d
Source commits: 4a19470,1b6688aa5b641010cb2e9dad23d36d87257403ad,9ed32aa3923fb674380564b1ffcb3268290069b9,a23f42d6ac671ea36b8db5d03934c089a31be448
Imported: complete product delta from the source PR.

(cherry picked from commit 7e02dc9)
patroza pushed a commit to patroza/t3code that referenced this pull request Aug 4, 2026
Clean up worktrees when archiving threads

Source: tim-smart#13
Source head: a23f42d
Source commits: 4a19470,1b6688aa5b641010cb2e9dad23d36d87257403ad,9ed32aa3923fb674380564b1ffcb3268290069b9,a23f42d6ac671ea36b8db5d03934c089a31be448
Imported: complete product delta from the source PR.

(cherry picked from commit 7e02dc9)
patroza pushed a commit to patroza/t3code that referenced this pull request Aug 4, 2026
Clean up worktrees when archiving threads

Source: tim-smart#13
Source head: a23f42d
Source commits: 4a19470,1b6688aa5b641010cb2e9dad23d36d87257403ad,9ed32aa3923fb674380564b1ffcb3268290069b9,a23f42d6ac671ea36b8db5d03934c089a31be448
Imported: complete product delta from the source PR.

(cherry picked from commit 7e02dc9)
patroza pushed a commit to patroza/t3code that referenced this pull request Aug 5, 2026
Clean up worktrees when archiving threads

Source: tim-smart#13
Source head: a23f42d
Source commits: 4a19470,1b6688aa5b641010cb2e9dad23d36d87257403ad,9ed32aa3923fb674380564b1ffcb3268290069b9,a23f42d6ac671ea36b8db5d03934c089a31be448
Imported: complete product delta from the source PR.

(cherry picked from commit 7e02dc9)
patroza pushed a commit to patroza/t3code that referenced this pull request Aug 5, 2026
Clean up worktrees when archiving threads

Source: tim-smart#13
Source head: a23f42d
Source commits: 4a19470,1b6688aa5b641010cb2e9dad23d36d87257403ad,9ed32aa3923fb674380564b1ffcb3268290069b9,a23f42d6ac671ea36b8db5d03934c089a31be448
Imported: complete product delta from the source PR.

(cherry picked from commit 7e02dc9)
omegent-app Bot pushed a commit to patroza/t3code that referenced this pull request Aug 6, 2026
Clean up worktrees when archiving threads

Source: tim-smart#13
Source head: a23f42d
Source commits: 4a19470,1b6688aa5b641010cb2e9dad23d36d87257403ad,9ed32aa3923fb674380564b1ffcb3268290069b9,a23f42d6ac671ea36b8db5d03934c089a31be448
Imported: complete product delta from the source PR.

(cherry picked from commit 7e02dc9)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XXL vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant