From 143391af17baf4c12289804485bbb306ab6f2c91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zo=C3=AB?= Date: Sat, 30 May 2026 19:26:36 -0700 Subject: [PATCH] debug: add --print-logs to opencode run to diagnose MCP init --- container/entrypoint.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/container/entrypoint.py b/container/entrypoint.py index da205b6..24d175c 100644 --- a/container/entrypoint.py +++ b/container/entrypoint.py @@ -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 ") result = subprocess.run(cmd, check=False) return result.returncode