Skip to content

Commit 9138038

Browse files
authored
Merge pull request #1192 from kubet/feat/smooth-brain-messages
fix: lint
2 parents 3e8ee15 + da0efcc commit 9138038

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/app/(dashboard)/projects/[projectId]/thread/_hooks/useThreadData.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export function useThreadData(threadId: string, projectId: string): UseThreadDat
101101
// Only check for very recent agent runs (last 30 seconds) to avoid false positives
102102
const thirtySecondsAgo = new Date(Date.now() - 30 * 1000);
103103
const recentActiveRun = agentRunsQuery.data.find((run) => {
104-
const runCreatedAt = new Date(run.created_at || 0);
104+
const runCreatedAt = new Date(run.started_at || 0);
105105
return run.status === 'running' && runCreatedAt > thirtySecondsAgo;
106106
});
107107

@@ -126,7 +126,7 @@ export function useThreadData(threadId: string, projectId: string): UseThreadDat
126126
if (agentRunsCheckedRef.current) {
127127
const thirtySecondsAgo = new Date(Date.now() - 30 * 1000);
128128
const hasRecentActiveRun = agentRunsQuery.data.find((run) => {
129-
const runCreatedAt = new Date(run.created_at || 0);
129+
const runCreatedAt = new Date(run.started_at || 0);
130130
return run.status === 'running' && runCreatedAt > thirtySecondsAgo;
131131
});
132132

0 commit comments

Comments
 (0)