fix: opencode run shouldn't print to stderr (#3341)

This commit is contained in:
Haris Gušić
2025-10-22 02:53:09 +02:00
committed by GitHub
parent 49567ce75e
commit ef2f094cdc
5 changed files with 17 additions and 23 deletions
+2 -1
View File
@@ -4,6 +4,7 @@ import { cmd } from "./cmd"
import { bootstrap } from "../bootstrap"
import { UI } from "../ui"
import * as prompts from "@clack/prompts"
import { EOL } from "os"
export const ExportCommand = cmd({
command: "export [sessionID]",
@@ -67,7 +68,7 @@ export const ExportCommand = cmd({
}
process.stdout.write(JSON.stringify(exportData, null, 2))
process.stdout.write("\n")
process.stdout.write(EOL)
} catch (error) {
UI.error(`Session not found: ${sessionID!}`)
process.exit(1)