From 90f80d92200f0bbe5e5f31f7fa15b1cd806cfca8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zo=C3=AB?= Date: Sat, 30 May 2026 18:03:28 -0700 Subject: [PATCH] fix: opencode run takes prompt as positional arg not --prompt-file --- container/entrypoint.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/container/entrypoint.py b/container/entrypoint.py index e8041d3..7ccd30a 100644 --- a/container/entrypoint.py +++ b/container/entrypoint.py @@ -151,11 +151,7 @@ Instructions: def run_opencode(prompt: str) -> int: """Run opencode non-interactively with the given prompt.""" - with tempfile.NamedTemporaryFile(mode="w", suffix=".txt", delete=False) as f: - f.write(prompt) - prompt_file = f.name - - cmd = ["opencode", "run", "--no-input", "--prompt-file", prompt_file] + cmd = ["opencode", "run", prompt] log.info("Running: %s", " ".join(cmd)) result = subprocess.run(cmd, check=False)