Feat: Allow users to enter text in the middle of a chat #3221 (#8569)

### What problem does this PR solve?

Feat: Allow users to enter text in the middle of a chat #3221
### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-06-30 10:36:52 +08:00
committed by GitHub
parent aafeffa292
commit 356d1f3485
12 changed files with 166 additions and 35 deletions

View File

@ -12,6 +12,7 @@ import { useClickDrawer } from '@/components/pdf-drawer/hooks';
import { useFetchAgent } from '@/hooks/use-agent-request';
import { useFetchUserInfo } from '@/hooks/user-setting-hooks';
import { buildMessageUuidWithRole } from '@/utils/chat';
import { InputForm } from './input-form';
const AgentChatBox = () => {
const {
@ -24,6 +25,7 @@ const AgentChatBox = () => {
derivedMessages,
reference,
stopOutputMessage,
send,
} = useSendNextMessage();
const { visible, hideModal, documentId, selectedChunk, clickDocumentButton } =
@ -59,7 +61,9 @@ const AgentChatBox = () => {
index={i}
showLikeButton={false}
sendLoading={sendLoading}
></MessageItem>
>
<InputForm send={send} message={message}></InputForm>
</MessageItem>
);
})}
</Spin>