What happened?
Using conductor i've got an error
'C:\Users\paolo.gemini\tmp\df0693792209f02376cad6d66776ca3ed5c81ff42bd696a80605cd53f8e04079\chats\session-2025-12-21T13-43-c27248 │
│ ed.json' │
│ Stack trace: │
│ Error: ENOENT: no such file or directory, open │
│ 'C:\Users\paolo.gemini\tmp\df0693792209f02376cad6d66776ca3ed5c81ff42bd696a80605cd53f8e04079\chats\session-2025-12-21T13-43-c27248 │
│ ed.json' │
│ at Object.writeFileSync (node:fs:2425:20) │
│ at ChatRecordingService.writeConversation │
│ (file:///C:/Users/paolo/AppData/Roaming/npm/node_modules/@google/gemini-cli/node_modules/@google/gemini-cli-core/dist/src/services │
│ /chatRecordingService.js:300:20) │
│ at ChatRecordingService.updateConversation │
│ (file:///C:/Users/paolo/AppData/Roaming/npm/node_modules/@google/gemini-cli/node_modules/@google/gemini-cli-core/dist/src/services │
│ /chatRecordingService.js:315:14) │
│ at ChatRecordingService.recordMessage │
│ (file:///C:/Users/paolo/AppData/Roaming/npm/node_modules/@google/gemini-cli/node_modules/@google/gemini-cli-core/dist/src/services │
│ /chatRecordingService.js:101:18) │
│ at file:///C:/Users/paolo/AppData/Roaming/npm/node_modules/@google/gemini-cli/dist/src/ui/hooks/useHistoryManager.js:60:43 │
│ at │
│ file:///C:/Users/paolo/AppData/Roaming/npm/node_modules/@google/gemini-cli/dist/src/ui/hooks/slashCommandProcessor.js:411:13 │
│ at async │
│ file:///C:/Users/paolo/AppData/Roaming/npm/node_modules/@google/gemini-cli/dist/src/ui/hooks/useGeminiStream.js:236:23 │
│ at async │
│ file:///C:/Users/paolo/AppData/Roaming/npm/node_modules/@google/gemini-cli/dist/src/ui/hooks/useGeminiStream.js:576:52
What did you expect to happen?
the chatRecordingService.ts must check if the directory exists before writeConfersation() start to write. Possible fix
╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ ? Edit gemi......\chatRecordingService.ts: // Only write the file i... => // Only write the file i... ← │
│ │
│ 418 conversation.lastUpdated = new Date().toISOString(); │
│ 419 const newContent = JSON.stringify(conversation, null, 2); │
│ 420 this.cachedLastConvData = newContent; │
│ 421 + │
│ 422 + // Ensure the directory exists before writing (handles cases where temp dir was cleaned) │
│ 423 + fs.mkdirSync(path.dirname(this.conversationFile), { recursive: true }); │
│ 424 fs.writeFileSync(this.conversationFile, newContent); │
│ 425 } │
│ 426 } catch (error) {
Client information
│ About Gemini CLI │
│ │
│ CLI Version 0.21.3 │
│ Git Commit d0cdeda │
│ Model auto-gemini-3 │
│ Sandbox no sandbox │
│ OS win32 │
│ Auth Method gemini-api-key │
│ User Email paolo.menichetti@gmail.com
Login information
│ Auth Method gemini-api-key
│ User Email paolo.menichetti@gmail.com
Anything else we need to know?
No response
What happened?
Using conductor i've got an error
'C:\Users\paolo.gemini\tmp\df0693792209f02376cad6d66776ca3ed5c81ff42bd696a80605cd53f8e04079\chats\session-2025-12-21T13-43-c27248 │
│ ed.json' │
│ Stack trace: │
│ Error: ENOENT: no such file or directory, open │
│ 'C:\Users\paolo.gemini\tmp\df0693792209f02376cad6d66776ca3ed5c81ff42bd696a80605cd53f8e04079\chats\session-2025-12-21T13-43-c27248 │
│ ed.json' │
│ at Object.writeFileSync (node:fs:2425:20) │
│ at ChatRecordingService.writeConversation │
│ (file:///C:/Users/paolo/AppData/Roaming/npm/node_modules/@google/gemini-cli/node_modules/@google/gemini-cli-core/dist/src/services │
│ /chatRecordingService.js:300:20) │
│ at ChatRecordingService.updateConversation │
│ (file:///C:/Users/paolo/AppData/Roaming/npm/node_modules/@google/gemini-cli/node_modules/@google/gemini-cli-core/dist/src/services │
│ /chatRecordingService.js:315:14) │
│ at ChatRecordingService.recordMessage │
│ (file:///C:/Users/paolo/AppData/Roaming/npm/node_modules/@google/gemini-cli/node_modules/@google/gemini-cli-core/dist/src/services │
│ /chatRecordingService.js:101:18) │
│ at file:///C:/Users/paolo/AppData/Roaming/npm/node_modules/@google/gemini-cli/dist/src/ui/hooks/useHistoryManager.js:60:43 │
│ at │
│ file:///C:/Users/paolo/AppData/Roaming/npm/node_modules/@google/gemini-cli/dist/src/ui/hooks/slashCommandProcessor.js:411:13 │
│ at async │
│ file:///C:/Users/paolo/AppData/Roaming/npm/node_modules/@google/gemini-cli/dist/src/ui/hooks/useGeminiStream.js:236:23 │
│ at async │
│ file:///C:/Users/paolo/AppData/Roaming/npm/node_modules/@google/gemini-cli/dist/src/ui/hooks/useGeminiStream.js:576:52
What did you expect to happen?
the chatRecordingService.ts must check if the directory exists before writeConfersation() start to write. Possible fix
╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ ? Edit gemi......\chatRecordingService.ts: // Only write the file i... => // Only write the file i... ← │
│ │
│ 418 conversation.lastUpdated = new Date().toISOString(); │
│ 419 const newContent = JSON.stringify(conversation, null, 2); │
│ 420 this.cachedLastConvData = newContent; │
│ 421 + │
│ 422 + // Ensure the directory exists before writing (handles cases where temp dir was cleaned) │
│ 423 + fs.mkdirSync(path.dirname(this.conversationFile), { recursive: true }); │
│ 424 fs.writeFileSync(this.conversationFile, newContent); │
│ 425 } │
│ 426 } catch (error) {
Client information
│ About Gemini CLI │
│ │
│ CLI Version 0.21.3 │
│ Git Commit d0cdeda │
│ Model auto-gemini-3 │
│ Sandbox no sandbox │
│ OS win32 │
│ Auth Method gemini-api-key │
│ User Email paolo.menichetti@gmail.com
Login information
│ Auth Method gemini-api-key
│ User Email paolo.menichetti@gmail.com
Anything else we need to know?
No response