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(team): Enhance member shutdown logic in collectTeamState function

zhengkailan18cbaa520e58
diff --git a/jiuwenswarm/channels/web/frontend/src/features/teamHistoryPanelRestore.ts b/jiuwenswarm/channels/web/frontend/src/features/teamHistoryPanelRestore.ts
index 24e742b671..66086ca44c 100644
--- a/jiuwenswarm/channels/web/frontend/src/features/teamHistoryPanelRestore.ts
+++ b/jiuwenswarm/channels/web/frontend/src/features/teamHistoryPanelRestore.ts
@@ -624,6 +624,14 @@ function collectTeamState(records: Record<string, unknown>[], sessionId: string)
applyMemberShutdown(memberId);
continue;
}
+ if (!shouldKeepMember(memberId)) {
+ continue;
+ }
+ const memberStatus = pickString(event, ['new_status', 'status']);
+ if (memberStatus === 'shut_down') {
+ applyMemberShutdown(memberId);
+ continue;
+ }
const memberEventType = pickString(event, ['type']);
if (
shutdownMembers.has(memberId) &&