fix(server): fall back when new worktrees are unavailable (#6208)

Preflight repository and base commit availability before creating the thread. Fall back to the project checkout for non-Git directories and repositories without a usable base commit, while preserving valid worktree setup.
dd6ba84dc9Tristan Knight committed on 9/13/2026, 5:11:40 PM· committed by GitHubparent9bf349c
4 files changedLine totals unavailable