Dashboard › opencode-lore › useTestConfigDir isolateProjectRoot
01a0a06d-067e-7934-9cab-a8603cac10f0Trap: using useTestConfigDir(prefix) looks isolated, but resolveOrg, detectDsn, or findProjectRoot can walk upward from .test-tmp, discover the real repository .git, scan source for Sentry DSNs, and trigger mocked network calls or 5-second timeouts. Fix: always use useTestConfigDir(prefix, { isolateProjectRoot: true }) for such paths; its temporary .git stops upward traversal.