We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cd7bb9 commit e218bddCopy full SHA for e218bdd
src/integrations/codex/run.ts
@@ -320,7 +320,13 @@ export class CodexCliSession {
320
if (!this.debugEnabled) return
321
const timestamped = `[${new Date().toISOString()}] ${line}`
322
if (this.logFileStream) {
323
- this.logFileStream.write(`${timestamped}${os.EOL}`)
+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
+}
330
} else {
331
try {
332
fs.appendFileSync(this.debugLogPath, `${timestamped}${os.EOL}`)
0 commit comments