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:1.web team新建会话中断消息2.tui 新发消息会中断就任务
openJiuwen-botbe2f392c43a5
diff --git a/jiuwenclaw/cli/src/app-state.ts b/jiuwenclaw/cli/src/app-state.tsindex 354902795f..910abf33de 100644--- a/jiuwenclaw/cli/src/app-state.ts+++ b/jiuwenclaw/cli/src/app-state.ts@@ -581,6 +581,9 @@ readonly request = async <T = Record<string, unknown>>(): string | null => {if (this.connectionStatus !== "connected") return null;const mode = modeOverride ?? this.mode;+ if (this.streamingState !== StreamingState.Idle) {+ this.sendEventOnly("chat.interrupt", { intent: "cancel" });+ }const requestId = this.sendEventOnly("chat.send", {content,query: content,diff --git a/jiuwenclaw/web/src/App.tsx b/jiuwenclaw/web/src/App.tsxindex d00577aa3c..b381c924bf 100644--- a/jiuwenclaw/web/src/App.tsx+++ b/jiuwenclaw/web/src/App.tsx@@ -712,6 +712,9 @@ function AppContent() {// 新建会话:立即生成可用的 session_id,避免停留在 'new' 导致无法发送消息const handleNewSession = useCallback(async () => {+ if (mode === 'team' && sessionId) {+ cancel(sessionId);+ }disposeInFlightHistoryHandles();setHistoryPagerMeta(null);setHistoryLoadingMore(false);@@ -752,6 +755,7 @@ function AppContent() {newSessionToastTimerRef.current = null;}, 2000);}, [+ cancel,clearMessages,clearNewSessionToastTimer,clearTodos,@@ -759,6 +763,7 @@ function AppContent() {fetchSessions,mode,request,+ sessionId,setCurrentSession,setPaused,setProcessing,