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:1.team模式下,新建session按钮始终打开2.工具弹窗底部按钮样式优化

openJiuwen-botf3310472f8ff
diff --git a/jiuwenclaw/web/src/components/ChatPanel/InputArea.tsx b/jiuwenclaw/web/src/components/ChatPanel/InputArea.tsx
index 3f8b6f2ef5..ea2f422ab4 100644
--- a/jiuwenclaw/web/src/components/ChatPanel/InputArea.tsx
+++ b/jiuwenclaw/web/src/components/ChatPanel/InputArea.tsx
@@ -208,14 +208,14 @@ export function InputArea({
);
const handleNewSession = useCallback(async () => {
- if (isListening || isInterruptible) return;
+ if (isListening || (isInterruptible && !isTeamMode)) return;
setInputValue('');
setPendingVoiceText('');
if (textareaRef.current) {
textareaRef.current.style.height = 'auto';
}
await onNewSession();
- }, [isListening, isInterruptible, onNewSession, setInputValue]);
+ }, [isListening, isInterruptible, isTeamMode, onNewSession, setInputValue]);
const handleModeSwitch = useCallback(async (targetMode: AgentMode) => {
if (mode === targetMode) return;
@@ -346,12 +346,12 @@ export function InputArea({
<button
type="button"
onClick={handleNewSession}
- disabled={isListening || isInterruptible}
+ disabled={isListening || (isInterruptible && !isTeamMode)}
className={cx(
'chat-input-btn',
- (isListening || isInterruptible) && 'chat-input-btn--disabled',
+ (isListening || (isInterruptible && !isTeamMode)) && 'chat-input-btn--disabled',
)}
- title={isListening || isInterruptible ? t('chat.newSessionDisabled') : t('chat.newSession')}
+ title={isListening || (isInterruptible && !isTeamMode) ? t('chat.newSessionDisabled') : t('chat.newSession')}
>
<svg className="chat-input-btn-icon" fill="none" stroke="currentColor" viewBox="0 0 24 24" strokeWidth={1.8}>
<path strokeLinecap="round" strokeLinejoin="round" d="M12 4.5v15m7.5-7.5h-15" />
diff --git a/jiuwenclaw/web/src/components/ChatPanel/ToolGroupDisplay.tsx b/jiuwenclaw/web/src/components/ChatPanel/ToolGroupDisplay.tsx
index 4f4bd61877..16861acbdc 100644
--- a/jiuwenclaw/web/src/components/ChatPanel/ToolGroupDisplay.tsx
+++ b/jiuwenclaw/web/src/components/ChatPanel/ToolGroupDisplay.tsx
@@ -247,36 +247,6 @@ function ToolDetailModal({ execution, onClose }: ToolDetailModalProps) {
</div>
)}
</div>
-
- {/* 底部状态栏 */}
- {result && (
- <div
- className="px-6 py-3 flex items-center justify-between"
- style={{
- backgroundColor: 'var(--panel-strong)',
- borderTop: '1px solid var(--border)',
- }}
- >
- <span
- className="text-sm"
- style={{ color: 'var(--muted)' }}
- >
- {result.summary || (result.success ? t('chatUi.toolResult.success') : t('chatUi.toolResult.failed'))}
- </span>
- <span
- className={clsx(
- 'px-3 py-1 rounded-full text-sm font-medium',
- result.success ? 'success' : 'error'
- )}
- style={{
- backgroundColor: result.success ? 'var(--ok-subtle)' : 'var(--danger-subtle)',
- color: result.success ? 'var(--ok)' : 'var(--danger)',
- }}
- >
- {result.success ? t('chatUi.toolResult.success') : t('chatUi.toolResult.failed')}
- </span>
- </div>
- )}
</div>
</div>
);