Repository navigation
Replies: 1 comment
|
+1. In my case the lack of this caused a crash loop, so here's data from a subagent-heavy Windows install (desktop 0.1.11). Numbers
Why it matters beyond sidebar clutter. Every live thread with a branch takes part in start-up branch PR lookups. On this install that's about 180 lookups and 2,200 Suggestion: put it next to the worktree cleanup settings. Settings β Storage already has "Delete inactive worktrees β Remove worktrees after their threads have been inactive for this many days. Branches and thread history are kept." On my install that removed the folders but kept the threads. 7,269 live threads point at a
Without it, the only way to catch up is one archive call per thread. On this install, 2,124 threads are settled and older than 8 days, and that's after the backlog has already broken the server. Related: #37236 (auto-cleanup for delegated child threads), #28245 (multi-select archive), #27428 ( |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Problem
Auto-settle moves finished work out of the active list, but the Settled shelf keeps growing. A snapshot of my environment had 225 settled threads. Keeping older work off the sidebar requires recurring manual archiving.
Proposed behavior
Add Auto-archive settled threads alongside the existing auto-settle settings. It would be off by default. When enabled, it would archive threads that remain settled for a configurable number of days, with 30 days as the suggested initial value.
Use environment defaults with project overrides, following the existing auto-settle settings. The controls would be available on web, desktop, and mobile, and the environment's server would apply the policy while clients are closed, including for remote connections.
Alternatives and tradeoffs
Automatically settled threads can include work someone still wants visible. Keeping this optional lets users choose whether to move that older work into the archive. Restricting eligibility to manually settled threads would be a possible smaller scope.
A manual bulk-archive action would also help clear the shelf, though it would still require periodic housekeeping. #6823 discusses that approach to the same growing-shelf problem.
Prototype
PR #13657 contains a prototype of these settings and the restore behavior. It was closed pending agreement on the direction and scope. These screenshots illustrate the proposed controls:
Would opt-in auto-archiving be a useful addition? I'm happy to contribute it if maintainers want to pursue this direction, with eligibility and restore behavior adjusted to the agreed scope.
All reactions