fix(preflight): unify review worktree regex, resolve Web UI NameError, and fix test isolation

This commit is contained in:
2026-07-11 19:49:16 -04:00
parent 8886ce201f
commit 72b18143f8
7 changed files with 42 additions and 20 deletions
+2 -6
View File
@@ -14,11 +14,7 @@ from merged_cleanup_reconcile import (
read_issue_lock,
read_local_worktree_state,
)
_REVIEW_WORKTREE_RE = re.compile(
r"branches/(?:review-pr\d+|merge-simulation-pr\d+|review-[\w-]+)",
re.IGNORECASE,
)
from reviewer_worktree import REVIEW_WORKTREE_RE
CLASSIFICATIONS = frozenset({
"active-pr",
@@ -147,7 +143,7 @@ def classify_entry(
if not record:
return "orphan", "Directory exists but is not a registered git worktree"
if record.get("detached") and _REVIEW_WORKTREE_RE.search(rel_path):
if record.get("detached") and REVIEW_WORKTREE_RE.search(rel_path):
return "detached-review", "Detached HEAD in reviewer/simulation worktree"
if state.get("exists") and state.get("clean"):