Skip to content

Commit e3e229c

Browse files
copilot comments resolved
1 parent f555a83 commit e3e229c

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

src/frontend/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"@types/react": "^18.3.23",
1616
"@types/react-dom": "^18.3.7",
1717
"axios": "^1.9.0",
18+
"crypto-js": "^4.2.0",
1819
"react": "^18.3.1",
1920
"react-dom": "^18.3.1",
2021
"react-markdown": "^10.1.0",
@@ -67,4 +68,4 @@
6768
"vite": "^5.4.19",
6869
"vitest": "^1.6.1"
6970
}
70-
}
71+
}

src/frontend/src/services/TaskService.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Task } from "../models/taskList";
33
import { apiService } from "../api/apiService";
44
import { InputTask, InputTaskResponse } from "../models/inputTask";
55
import { formatDate } from "@/utils/utils";
6+
import * as cr from "crypto-js/core";
67

78
/**
89
* TaskService - Service for handling task-related operations and transformations
@@ -98,8 +99,8 @@ export class TaskService {
9899
*/
99100
static generateSessionId(): string {
100101
const timestamp = new Date().getTime();
101-
const random = Math.floor(Math.random() * 10000);
102-
return `sid_${timestamp}_${random}`;
102+
const randomBytes = cr.randomBytes(4).toString("hex");
103+
return `sid_${timestamp}_${randomBytes}`;
103104
}
104105
/**
105106
* Split subtask action into description and function/details parts

src/frontend/src/styles/TaskList.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
}
121121

122122
.fui-AccordionPanel {
123-
max-height: 280px;
123+
max-height: 280px !important;
124124
overflow-y: auto !important;
125125
transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
126126
}

0 commit comments

Comments
 (0)