Skip to content

JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.

Python

fix: reset history loading when sending a message to fix stuck stop button

cycong_191e57548c137
diff --git a/jiuwenswarm/channels/web/frontend/src/App.tsx b/jiuwenswarm/channels/web/frontend/src/App.tsx
index 147ff0c0db..2eedadf7c9 100644
--- a/jiuwenswarm/channels/web/frontend/src/App.tsx
+++ b/jiuwenswarm/channels/web/frontend/src/App.tsx
@@ -1063,8 +1063,9 @@ for (let i = payload.team.length; i < 10; i++) {
const handleSendMessage = useCallback((content: string) => {
const currentSessionId = sessionIdRef.current;
if (!currentSessionId || currentSessionId === 'new') return;
+ disposeInFlightHistoryHandles();
void sendMessage(content, currentSessionId);
- }, [sendMessage]);
+ }, [disposeInFlightHistoryHandles, sendMessage]);
useEffect(() => {
return setA2UIActionHandler((message) => {