refactor(tui): replace Bun-specific APIs with portable alternatives (#18304)

This commit is contained in:
Dax
2026-03-19 19:32:59 -04:00
committed by GitHub
parent 2c056c90da
commit ddcb32ae0b
2 changed files with 5 additions and 6 deletions
@@ -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" })