mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-24 05:35:15 +00:00
tui: export sessions using consistent Filesystem API instead of Bun.write
This commit is contained in:
parent
ca26e639f6
commit
fac0aec69f
1 changed files with 2 additions and 2 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" })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue