File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import "../../styles/PlanChat.css";
2020import "../../styles/Chat.css" ;
2121import "../../styles/prism-material-oceanic.css" ;
2222import { TaskService } from "@/services/TaskService" ;
23+ import InlineToaster from "../toast/InlineToaster" ;
2324
2425const PlanChat : React . FC < PlanChatProps > = ( {
2526 planData,
@@ -104,7 +105,7 @@ const PlanChat: React.FC<PlanChatProps> = ({
104105 Back to bottom
105106 </ Tag >
106107 ) }
107-
108+ < InlineToaster />
108109 < div ref = { inputContainerRef } className = "plan-chat-input-container" >
109110 < div className = "plan-chat-input-wrapper" >
110111 < ChatInput
@@ -118,12 +119,13 @@ const PlanChat: React.FC<PlanChatProps> = ({
118119 appearance = "transparent"
119120 onClick = { sendMessage }
120121 icon = { < Send /> }
121- disabled = { ! planData ?. enableChat || isTyping || ! input . trim ( ) }
122+ disabled = { ! planData ?. enableChat }
122123 />
123124 </ ChatInput >
124125 </ div >
125126 </ div >
126127 </ div >
128+
127129 ) ;
128130} ;
129131
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ export class PlanDataService { /**
4545 const hasClarificationRequest = plan . human_clarification_request != null && plan . human_clarification_request . trim ( ) . length > 0 ;
4646 const hasClarificationResponse = plan . human_clarification_response != null && plan . human_clarification_response . trim ( ) . length > 0 ;
4747 const enableChat = hasClarificationRequest && ! hasClarificationResponse ;
48- const enableStepButtons = hasClarificationRequest && hasClarificationResponse ;
48+ const enableStepButtons = ( hasClarificationRequest && hasClarificationResponse ) || ( ! hasClarificationRequest && ! hasClarificationResponse ) ;
4949 return {
5050 plan,
5151 agents,
You can’t perform that action at this time.
0 commit comments