fix(server): deleting a thread now cleans the worktree its subagents shared

A deleted thread's remaining native subagent threads counted as other
users of its worktree, so worktreeOnDelete kept it. The deleted thread
now owns its subagent chain's worktree like a live parent does, so
existing orphans are released too, while running subagents, forks and
unrelated threads still keep it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cb5e876ea5Julius Marminge committed on 10/22/2026, 11:48:01 PMparent8b787b7
1 file changedLine totals unavailable