Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Aliasgar Khimani
2026-07-23 02:59:42 +03:00
committed by GitHub
parent 49356f8e09
commit 0a898b1630

View File

@@ -545,9 +545,9 @@ def _run_scenario(
# Prompt on stdin + text output, matching backend.py's Claude CLI usage.
# (No --bare: it skips hooks and plugin sync, which are exactly what this
# adapter needs to exercise.) Resolve claude to an absolute path so it's
# found even under the minimal PATH above.
claude_bin = shutil.which("claude") or "claude"
# adapter needs to exercise.)
sandbox_mode = os.environ.get("SKILLOPT_SANDBOX", "")
claude_bin = "claude" if sandbox_mode == "docker" else (shutil.which("claude") or "claude")
cmd = [claude_bin, "-p", "--output-format", "text", "--plugin-dir", str(superpowers_dir)]
# Permission handling for non-interactive execution: