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:回复时间戳是第一个文字生成的时间,而不是结束时间

xiaoyao42d4155ed706a5
diff --git a/jiuwenswarm/channels/web/frontend/src/hooks/useWebSocket.ts b/jiuwenswarm/channels/web/frontend/src/hooks/useWebSocket.ts
index 5dd27cb0a5..0741580ede 100644
--- a/jiuwenswarm/channels/web/frontend/src/hooks/useWebSocket.ts
+++ b/jiuwenswarm/channels/web/frontend/src/hooks/useWebSocket.ts
@@ -1785,6 +1785,7 @@ export function useWebSocket(options: UseWebSocketOptions): UseWebSocketReturn {
useChatStore.getState().updateMessage(sessionId, streamId, {
...(content ? { content } : {}),
isStreaming: false,
+ timestamp: normalizeEventTimestampIso(payload.timestamp),
...(isProactiveRecommendation ? { isProactiveRecommendation, ...(proactiveType ? { proactiveType: proactiveType as 'skill_recommend' | 'task_reminder' | 'need_exploration' } : {}) } : {}),
});
useChatStore.getState().stopStreaming(sessionId);
diff --git a/jiuwenswarm/channels/web/frontend/src/multi-session/sidebar/ConversationSidebar.css b/jiuwenswarm/channels/web/frontend/src/multi-session/sidebar/ConversationSidebar.css
index afd8c37144..765e58f139 100644
--- a/jiuwenswarm/channels/web/frontend/src/multi-session/sidebar/ConversationSidebar.css
+++ b/jiuwenswarm/channels/web/frontend/src/multi-session/sidebar/ConversationSidebar.css
@@ -55,7 +55,7 @@
}
.conversation-sidebar__new:hover {
- background: var(--color-action-secondary);
+ background: var(--color-sidebar-nav-active);
}
.conversation-sidebar__new:focus-visible {