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(session): Fix the issue where the cancel status bar fails to show when messages are sent immediately after loading completes
openJiuwen-bot50e8f80a0803
diff --git a/jiuwenswarm/channels/web/frontend/src/hooks/useWebSocket.ts b/jiuwenswarm/channels/web/frontend/src/hooks/useWebSocket.tsindex 59d0ba18fb..63fc668a46 100644--- a/jiuwenswarm/channels/web/frontend/src/hooks/useWebSocket.ts+++ b/jiuwenswarm/channels/web/frontend/src/hooks/useWebSocket.ts@@ -1147,6 +1147,7 @@ export function useWebSocket(options: UseWebSocketOptions): UseWebSocketReturn {typeof payload.error === 'string' ? payload.error : i18n.t('network.unknownError');// 忽略 "invalid page_idx or session history not found" 错误,因为这是新会话的正常情况if (errorMsg.includes('invalid page_idx or session history not found')) {+ useChatStore.getState().setLoadingHistory(false);return;}onErrorRef.current?.(errorMsg);