mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 04:44:21 +01:00
Fix message editing state and stream detection logic
This commit is contained in:
1 parent
4fd658fc7d
commit
5628c4c7be
2 files changed
+10
-2
No files matched your search
@@ -47,6 +47,12 @@ export const EditableUserMessage = memo(function EditableUserMessage({
|
||||
}
|
||||
}, [editedContent])
|
||||
|
||||
useEffect(() => {
|
||||
return () => {
|
||||
setIsEditingMessage(false)
|
||||
}
|
||||
}, [setIsEditingMessage])
|
||||
|
||||
const handleSubmit = () => {
|
||||
if (!editedContent.trim() || refreshMessage.isPending) return
|
||||
|
||||
|
||||
Reference in new issue
Block a user