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)