diff --git a/backend/app/controller/chat_controller.py b/backend/app/controller/chat_controller.py index 931987d02..d9afc4acd 100644 --- a/backend/app/controller/chat_controller.py +++ b/backend/app/controller/chat_controller.py @@ -50,7 +50,7 @@ async def post(data: Chat, request: Request): os.environ["CAMEL_MODEL_LOG_ENABLED"] = "true" email_sanitized = re.sub(r'[\\/*?:"<>|\s]', "_", data.email.split("@")[0]).strip(".") - camel_log = Path.home() / ".eigent" / email_sanitized / ("project_" + data.project_id) /("task_" + data.task_id) / "camel_logs" + camel_log = Path.home() / ".eigent" / email_sanitized / ("project_" + data.project_id) / ("task_" + data.task_id) / "camel_logs" camel_log.mkdir(parents=True, exist_ok=True) os.environ["CAMEL_LOG_DIR"] = str(camel_log) diff --git a/src/components/HistorySidebar/index.tsx b/src/components/HistorySidebar/index.tsx index 96794608d..7a6b2223c 100644 --- a/src/components/HistorySidebar/index.tsx +++ b/src/components/HistorySidebar/index.tsx @@ -178,7 +178,7 @@ export default function HistorySidebar() { try { //TODO(file): rename endpoint to use project_id //TODO(history): make sure to sync to projectId when updating endpoint - await (window as any).ipcRenderer.invoke('delete-task-files', email, history.task_id,history.project_id ?? undefined); + await (window as any).ipcRenderer.invoke('delete-task-files', email, history.task_id, history.project_id ?? undefined); } catch (error) { console.warn("Local file cleanup failed:", error); }