fix:user 消息重复
This commit is contained in:
parent
d0051baa07
commit
2bda66a042
@ -171,13 +171,7 @@ function App() {
|
||||
|
||||
const handleExitSubAgentView = useCallback(() => {
|
||||
exitSubAgentView()
|
||||
// Reload current topic messages
|
||||
if (selectedTopic) {
|
||||
const cmd: Command = { type: 'load_topic', topic_id: selectedTopic }
|
||||
handleCommand(cmd)
|
||||
sendMessage({ type: 'command', payload: JSON.stringify(cmd) })
|
||||
}
|
||||
}, [exitSubAgentView, selectedTopic, handleCommand, sendMessage])
|
||||
}, [exitSubAgentView])
|
||||
|
||||
const chatMessages = useMemo(() => {
|
||||
const result: ChatMessage[] = []
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user