tui: export sessions using consistent Filesystem API instead of Bun.write

opencode/quiet-pixel
Dax Raad 2026-03-09 23:44:20 -04:00
parent ca26e639f6
commit fac0aec69f
1 changed files with 2 additions and 2 deletions

View File

@ -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" })