Answer stability round 1: 0 🔴, 4 🟡 (0 misread); drop the stale worktree git answers, assert the routing claude's folder, keep the host's CLAUDE_CODE_SANDBOXED out of the tests, delete the docstring's trust sentence

This commit is contained in:
2026-10-30 21:53:49 +01:00
parent fd878353bc
commit 4a6cad05ea
2 changed files with 18 additions and 14 deletions
+3 -2
View File
@@ -1,6 +1,7 @@
import os
# A git hook's GIT_DIR, the host's LOOP_CLAUDE_* or PYTHONPATH would point the program under test at the host's own state.
# A git hook's GIT_DIR, the host's LOOP_CLAUDE_* or PYTHONPATH would point the program under test at the host's own state,
# and the host's CLAUDE_CODE_SANDBOXED would hide whether loop-claude sets it.
def isolated_env() -> dict[str, str]:
return {name: value for name, value in os.environ.items() if not name.startswith(("GIT_", "LOOP_CLAUDE_", "PYTHON"))}
return {name: value for name, value in os.environ.items() if not name.startswith(("GIT_", "LOOP_CLAUDE_", "PYTHON")) and name != "CLAUDE_CODE_SANDBOXED"}