Skip to content

Commit e218bdd

Browse files
Update src/integrations/codex/run.ts
Co-authored-by: roomote[bot] <219738659+roomote[bot]@users.noreply.github.com>
1 parent 2cd7bb9 commit e218bdd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/integrations/codex/run.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,13 @@ export class CodexCliSession {
320320
if (!this.debugEnabled) return
321321
const timestamped = `[${new Date().toISOString()}] ${line}`
322322
if (this.logFileStream) {
323-
this.logFileStream.write(`${timestamped}${os.EOL}`)
323+
if (this.logFileStream) {
324+
try {
325+
this.logFileStream.write(`${timestamped}${os.EOL}`)
326+
} catch (error) {
327+
console.warn("Failed to write to Codex debug log stream:", error)
328+
}
329+
}
324330
} else {
325331
try {
326332
fs.appendFileSync(this.debugLogPath, `${timestamped}${os.EOL}`)

0 commit comments

Comments
 (0)