debug: add --print-logs to opencode run to diagnose MCP init
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Zoë 2026-05-30 19:26:36 -07:00
parent b35215be46
commit 143391af17

View file

@ -169,8 +169,8 @@ Instructions:
def run_opencode(prompt: str) -> int:
"""Run opencode non-interactively with the given prompt."""
cmd = ["opencode", "run", prompt]
log.info("Running: %s", " ".join(cmd))
cmd = ["opencode", "run", "--print-logs", prompt]
log.info("Running: opencode run --print-logs <prompt>")
result = subprocess.run(cmd, check=False)
return result.returncode