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.xiaoyi channel流式开关前端不展示2.飞书配置app_id和app_secret为空时禁止保存

shiruifeng111649c49ac12b09
diff --git a/jiuwenclaw/web/src/components/ChannelsPanel/index.tsx b/jiuwenclaw/web/src/components/ChannelsPanel/index.tsx
index 708d382ecc..871c2d25bf 100644
--- a/jiuwenclaw/web/src/components/ChannelsPanel/index.tsx
+++ b/jiuwenclaw/web/src/components/ChannelsPanel/index.tsx
@@ -691,26 +691,6 @@ export function ChannelsPanel({ isConnected }: ChannelsPanelProps) {
</td>
</tr>
))}
- <tr className="border-t border-border first:border-t-0 even:bg-secondary/10">
- <td className="px-4 py-2.5 align-middle mono text-xs text-text-muted w-[32%]">enable_streaming</td>
- <td className="px-4 py-2.5 align-middle">
- <button
- type="button"
- role="switch"
- aria-checked={xiaoyiDraft.enable_streaming}
- onClick={() => handleXiaoyiFieldChange('enable_streaming', !xiaoyiDraft.enable_streaming)}
- className={`relative inline-flex h-5 w-9 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 focus:outline-none ${
- xiaoyiDraft.enable_streaming ? 'bg-ok' : 'bg-secondary'
- }`}
- >
- <span
- className={`pointer-events-none inline-block h-4 w-4 transform rounded-full bg-white shadow transition duration-200 ${
- xiaoyiDraft.enable_streaming ? 'translate-x-4' : 'translate-x-0'
- }`}
- />
- </button>
- </td>
- </tr>
</tbody>
</table>
)}
@@ -749,7 +729,7 @@ export function ChannelsPanel({ isConnected }: ChannelsPanelProps) {
<button
type="button"
onClick={() => void handleSaveConfig()}
- disabled={!hasConfigChanges || saving || !isConnected}
+ disabled={!hasConfigChanges || saving || !isConnected || !draft.app_id.trim() || !draft.app_secret.trim()}
className="btn primary !px-3 !py-1.5 disabled:opacity-50 disabled:cursor-not-allowed"
>
{saving ? '保存中...' : '保存'}