From fac0aec69f2971496aad79ee99b4dc8e88eb27ef Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Mon, 9 Mar 2026 23:44:20 -0400 Subject: [PATCH] tui: export sessions using consistent Filesystem API instead of Bun.write --- packages/opencode/src/cli/cmd/tui/routes/session/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx b/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx index 7456742cdf..7b54ec2875 100644 --- a/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx +++ b/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx @@ -907,12 +907,12 @@ export function Session() { const filename = options.filename.trim() const filepath = path.join(exportDir, filename) - await Bun.write(filepath, transcript) + await Filesystem.write(filepath, transcript) // Open with EDITOR if available const result = await Editor.open({ value: transcript, renderer }) if (result !== undefined) { - await Bun.write(filepath, result) + await Filesystem.write(filepath, result) } toast.show({ message: `Session exported to ${filename}`, variant: "success" })