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
+1 -2
View File
@@ -724,8 +724,7 @@ def _verify_role_mutation_workspace(
task: str | None = None,
) -> str:
"""Bind reviewer/merger mutations to the active namespace workspace (#510)."""
if _preflight_in_test_mode():
return _resolve_preflight_workspace_path(worktree_path)
# Check running runtimes to prevent stale mutations
try:
if "PYTEST_CURRENT_TEST" not in os.environ or "GITEA_FORCE_MCP_RUNTIME_CHECK" in os.environ: