Log API-initiated tasks to a tmp directory (#5833)

This commit is contained in:
Chris Estreich 2025-07-17 11:47:21 -07:00 committed by GitHub
parent d2b51c1b41
commit 921d7ca6c4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
"roo-cline": patch
---
Log api-initiated tasks to a tmp directory

View file

@ -2,6 +2,7 @@ import { EventEmitter } from "events"
import * as vscode from "vscode"
import fs from "fs/promises"
import * as path from "path"
import * as os from "os"
import {
RooCodeAPI,
@ -50,7 +51,7 @@ export class API extends EventEmitter<RooCodeEvents> implements RooCodeAPI {
console.log(args)
}
this.logfile = path.join(getWorkspacePath(), "roo-code-messages.log")
this.logfile = path.join(os.tmpdir(), "roo-code-messages.log")
} else {
this.log = () => {}
}