You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Deleted thread's worktree environment stays in 'retiring' past its retire time; teardown starts only after bb environment delete #7193
The Retire at time was already in the past (date -u on the host showed 20:12 UTC). Running bb environment delete <env-id> immediately switched it to Lifecycle: teardown; the hook ran, finished successfully and the worktree was removed.
In the same session, two other worktree environments of the same project were torn down right after bb thread delete, so this does not happen every time.
This differs from #4158: there the teardown hook was interrupted and the environment is stuck in teardown failed with endless retries. Here the teardown never started at all, and the environment sat in ready / retiring past its Retire at time.
We have not checked whether clock skew between the host and the server is involved.
Classification: Bug · Priority: Medium · Effort: Medium · Labels: workspaces, confirmed-repro.
Reproduction report: REPRODUCED, confidence medium. Repeated on trusted main in two clean checkouts; explicit cleanup also succeeds while automatic retirement is stalled.
Root cause: the periodic lifecycle job awaits all removals, so a slow removal prevents later ticks from checking newly expired environments on other hosts. The server/SQLite reproduction is verified; the original Windows/Connect trigger and clock relationship remain unverified.
Fix: ready PR Keep retirement sweeps moving during slow environment removals #7194 dispatches periodic cleanup without waiting for slow removals, preserving existing concurrency protections. The regression fails before and passes after; 187 relevant tests, server typecheck, and diff checks pass. 86 changed lines across 3 files.
Activity
bb-slop-cop commentedon Nov 6, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotworkspaces,confirmed-repro.Keep retirement sweeps moving during slow environment removals (get-b…