chore: format

This commit is contained in:
suyao 2026-01-03 16:38:06 +08:00
parent 2a6dcec120
commit 40fee5de40
No known key found for this signature in database

View File

@ -81,9 +81,7 @@ const AgentSessionMessages: React.FC<Props> = ({ agentId, sessionId }) => {
// Listen for send message events to auto-scroll to bottom
useEffect(() => {
const unsubscribes = [
EventEmitter.on(EVENT_NAMES.SEND_MESSAGE, scrollToBottom)
]
const unsubscribes = [EventEmitter.on(EVENT_NAMES.SEND_MESSAGE, scrollToBottom)]
return () => unsubscribes.forEach((unsub) => unsub())
}, [scrollToBottom])