Skip to content

Commit 644dce2

Browse files
committed
Update PlanPage.tsx
1 parent 3f176b1 commit 644dce2

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/frontend/src/pages/PlanPage.tsx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,27 @@ const PlanPage: React.FC = () => {
134134
return () => unsubscribe();
135135
}, [scrollToBottom]); //onPlanReceived, scrollToBottom
136136

137+
useEffect(() => {
138+
const unsubscribe = webSocketService.on(WebsocketMessageType.USER_CLARIFICATION_REQUEST, (clarificationMessage: any) => {
139+
console.log('📋 Clarification Message', clarificationMessage);
140+
scrollToBottom();
141+
142+
});
143+
144+
return () => unsubscribe();
145+
}, [scrollToBottom]);
146+
147+
useEffect(() => {
148+
const unsubscribe = webSocketService.on(WebsocketMessageType.USER_AGENT_TOOL_MESSAGE, (toolMessage: any) => {
149+
console.log('📋 Tool Message', toolMessage);
150+
scrollToBottom();
151+
152+
});
153+
154+
return () => unsubscribe();
155+
}, [scrollToBottom]);
156+
157+
137158
useEffect(() => {
138159
const unsubscribe = webSocketService.on(WebsocketMessageType.AGENT_MESSAGE, (agentMessage: any) => {
139160
console.log('📋 Agent Message', agentMessage);

0 commit comments

Comments
 (0)