Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backend/app/controller/chat_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 / ("task_" + data.project_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)
Expand Down
2 changes: 1 addition & 1 deletion src/components/HistorySidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
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);
}
Expand Down