Skip to content

Reclaim worktrees on archive and merge, not only the boot sweep #604

Closed

Description

@currentbits

Part of #559.

Call enforceRetention after a thread is archived and after a worktree is merged (mergeWorktree, thread_merge, in-app PR merge). Fire-and-forget so the user-facing action does not wait on the scan. Same guards as boot: skip blocked / working / pinned / unmerged, never delete branches.

Tests: archive (or merge) of a settled thread past the default of 10 reclaims the oldest extras; 0-retention projects stay untouched.

Activity

  1. added
    plan:todo
    plan:done
    and removed
    plan:todo
    on Aug 20, 2026
  2. currentbits commented on Aug 22, 2026

    @currentbits
    OwnerAuthor

    Verified shipped on main (audit 2026-08-22): implementation present in the working tree, not just on a worker branch. Closing — the planboard never auto-closed these (#632).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    plan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions