Skip to content

Commit 7d18a59

Browse files
sync log/task name
1 parent 51afae8 commit 7d18a59

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

backend/app/controller/chat_controller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ async def post(data: Chat, request: Request):
5050
os.environ["CAMEL_MODEL_LOG_ENABLED"] = "true"
5151

5252
email_sanitized = re.sub(r'[\\/*?:"<>|\s]', "_", data.email.split("@")[0]).strip(".")
53-
camel_log = Path.home() / ".eigent" / email_sanitized / ("task_" + data.project_id) / "camel_logs"
53+
camel_log = Path.home() / ".eigent" / email_sanitized / ("project_" + data.project_id) /("task_" + data.task_id) / "camel_logs"
5454
camel_log.mkdir(parents=True, exist_ok=True)
5555

5656
os.environ["CAMEL_LOG_DIR"] = str(camel_log)

src/components/HistorySidebar/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ export default function HistorySidebar() {
178178
try {
179179
//TODO(file): rename endpoint to use project_id
180180
//TODO(history): make sure to sync to projectId when updating endpoint
181-
await (window as any).ipcRenderer.invoke('delete-task-files', email, history.task_id);
181+
await (window as any).ipcRenderer.invoke('delete-task-files', email, history.task_id,history.project_id ?? undefined);
182182
} catch (error) {
183183
console.warn("Local file cleanup failed:", error);
184184
}

0 commit comments

Comments
 (0)