Skip to content
Merged
Changes from all commits
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
9 changes: 6 additions & 3 deletions src/frontend/src/services/TaskService.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ export class TaskService {
completed_steps: plan.completed,
total_steps: plan.total_steps,
status: apiService.isPlanComplete(plan) ? "completed" : "inprogress",
date: formatDate(plan.timestamp),
date: new Intl.DateTimeFormat(undefined, {
dateStyle: "long",
// timeStyle: "short",
}).format(new Date(plan.timestamp)),
};

// Categorize based on plan status and completion
Expand Down Expand Up @@ -98,8 +101,8 @@ export class TaskService {
*/
static generateSessionId(): string {
const timestamp = new Date().getTime();
const random = Math.floor(Math.random() * 10000);
return `sid_${timestamp}_${random}`;
const random = Math.floor(Math.random() * 10000);
return `sid_${timestamp}_${random}`;
}
/**
* Split subtask action into description and function/details parts
Expand Down
Loading