fix: fix issue with chat-input-area
clearing during Responding state.
#12352
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Resolves #11849
This PR is a resubmission as requested, as part of the now-closed #11850 .
Fixed
chat-input-area
was cleared in response stateModification Details
This pull request includes changes to the
ChatInputArea
component to handle the scenario when a response is already being processed. The most important changes include adding a newisResponding
property to the component's props and implementing a check to notify the user if a response is in progress.Enhancements to
ChatInputArea
component:web/app/components/base/chat/chat/chat-input-area/index.tsx
: AddedisResponding
property toChatInputAreaProps
and included it in the component's destructured props. [1] [2]web/app/components/base/chat/chat/chat-input-area/index.tsx
: Implemented a check in thehandleSend
function to notify the user if a response is already being processed, preventing multiple simultaneous responses.Integration with
Chat
component:web/app/components/base/chat/chat/index.tsx
: Passed theisResponding
prop to theChatInputArea
component to ensure the new functionality is integrated.Checklist
Important
Please review the checklist below before submitting your pull request.
dev/reformat
(backend) andcd web && npx lint-staged
(frontend) to appease the lint gods