Skip to content

Commit 84b64d4

Browse files
Added code changes to implement functionality to disable the chat once the agent receives a human clarification response from the user.
1 parent 39a4e90 commit 84b64d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/frontend/wwwroot/task/task.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,8 @@
217217
fetchTaskStages(data[0]);
218218

219219
sessionStorage.setItem("apiTask", JSON.stringify(data[0]));
220-
const isHumanClarificationRequestNull = data?.[0]?.human_clarification_request === null
220+
//const isHumanClarificationRequestNull = data?.[0]?.human_clarification_request === null
221+
const isHumanClarificationResponseNotNull = data?.[0]?.human_clarification_response !== null;
221222
const taskMessageTextareaElement =document.getElementById("taskMessageTextarea");
222223
const taskMessageAddButton = document.getElementById("taskMessageAddButton");
223224
const textInputContainer = document.getElementsByClassName("text-input-container");

0 commit comments

Comments
 (0)