commit 9a2e6dafd9c24706d4dafc371afec1012c346eef
parent 5d0cbf1730d43324a9ee24fed87e75cd8808cc67
Author: Henry Unite <unitehenry@gmail.com>
Date: Mon, 26 Oct 2026 04:58:08 +0000
chore: pipe to stdout debug
Diffstat:
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/opencode.test.ts b/opencode.test.ts
@@ -229,8 +229,13 @@ describe("opencode", () => {
await new Promise((r) => setTimeout(r, 100));
}
- console.log('[SESSION ID] ' + session.id);
- console.log(execSync('limactl list'), { stdio: "ignore" }.stdout);
+ console.log("[SESSION ID] " + session.id);
+ console.log(
+ execSync("limactl list", {
+ encoding: "utf8",
+ stdio: ["ignore", "pipe", "ignore"],
+ }),
+ );
// Call shell.create — this triggers ctx.shell.hook("create.before"),
// which wraps the command with `limactl shell ... bash -c 'hostname'`