mirror of
https://github.com/microsoft/SkillOpt.git
synced 2026-08-03 07:02:46 +08:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user