π OpenHands: AI-Driven Development
fix(frontend): Handle assistant messages at the top (#8766)
sp.wack6fe5da810b28
diff --git a/frontend/src/context/ws-client-provider.tsx b/frontend/src/context/ws-client-provider.tsxindex d814ef46d6..fd3e0434ae 100644--- a/frontend/src/context/ws-client-provider.tsx+++ b/frontend/src/context/ws-client-provider.tsx@@ -166,6 +166,8 @@ export function WsClientProvider({}function handleMessage(event: Record<string, unknown>) {+ handleAssistantMessage(event);+if (isOpenHandsEvent(event)) {const isStatusUpdateError =isStatusUpdate(event) && event.type === "error";@@ -255,8 +257,6 @@ export function WsClientProvider({if (!Number.isNaN(parseInt(event.id as string, 10))) {lastEventRef.current = event;}-- handleAssistantMessage(event);}function handleDisconnect(data: unknown) {