File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments