debug: add --print-logs to opencode run to diagnose MCP init
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
b35215be46
commit
143391af17
1 changed files with 2 additions and 2 deletions
|
|
@ -169,8 +169,8 @@ Instructions:
|
||||||
|
|
||||||
def run_opencode(prompt: str) -> int:
|
def run_opencode(prompt: str) -> int:
|
||||||
"""Run opencode non-interactively with the given prompt."""
|
"""Run opencode non-interactively with the given prompt."""
|
||||||
cmd = ["opencode", "run", prompt]
|
cmd = ["opencode", "run", "--print-logs", prompt]
|
||||||
log.info("Running: %s", " ".join(cmd))
|
log.info("Running: opencode run --print-logs <prompt>")
|
||||||
result = subprocess.run(cmd, check=False)
|
result = subprocess.run(cmd, check=False)
|
||||||
return result.returncode
|
return result.returncode
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue