Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix: timer stops counting when waiting for user input (#1069) #1074

ClosedSaikrishna1876(GitHub profile, opens in a new tab)wants to merge 5 commits intomain fromrefs/pull/1074/headopened View on GitHub

Showing 4 changed files with 76 additions and 13 deletions (loading 2).

x
0 of 4 viewed, 4 left
44 additions and 9 deletionsapps/web/src/components/chat/MessagesTimeline.tsxModified
View file
@@ -43,6 +43,9 @@
interface MessagesTimelineProps {
hasMessages: boolean;
isWorking: boolean;
+ isWaitingForUserInput: boolean;
+ waitingStartedAt: string | null;
+ workingForLabel: string | null;
activeTurnInProgress: boolean;
activeTurnStartedAt: string | null;
scrollContainer: HTMLDivElement | null;
@@ -67,6 +70,9 @@
export const MessagesTimeline = memo(function MessagesTimeline({
hasMessages,
isWorking,
+ isWaitingForUserInput,
+ waitingStartedAt,
+ workingForLabel,
activeTurnInProgress,
activeTurnStartedAt,
scrollContainer,
@@ -113,7 +119,7 @@
return () => {
observer.disconnect();
- }, [hasMessages, isWorking]);
+ }, [hasMessages, isWorking, isWaitingForUserInput]);
​
const rows = useMemo<TimelineRow[]>(() => {