The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(channel-config): prevent crash when channel type is undefined
Steven Enamakel8c3617050155
diff --git a/app/src/components/channels/ChannelConfigPanel.tsx b/app/src/components/channels/ChannelConfigPanel.tsxindex 77dbb33701..4720471be5 100644--- a/app/src/components/channels/ChannelConfigPanel.tsx+++ b/app/src/components/channels/ChannelConfigPanel.tsx@@ -3,7 +3,7 @@ import type { ChannelDefinition, ChannelType } from '../../types/channels';import ChannelCapabilities from './ChannelCapabilities';import CredentialChannelConfig from './CredentialChannelConfig';import DiscordConfig from './DiscordConfig';-import McpServersTab from './mcp/McpServersTab';+import McpServersPage from './mcp/McpServersPage';import TelegramConfig from './TelegramConfig';import WebChannelConfig from './WebChannelConfig';@@ -16,16 +16,11 @@ const ChannelConfigPanel = ({ selectedChannel, definitions }: ChannelConfigPanelconst { t } = useT();// MCP is a virtual tab — not backed by a ChannelDefinition from the core.+ // The page carries its own header and tab strip.if (selectedChannel === 'mcp') {return (- <div className="space-y-4">- <section className="rounded-xl border border-line bg-surface p-4 space-y-3">- <div>- <h3 className="text-base font-semibold text-content">{t('channels.mcp.title')}</h3>- <p className="text-xs text-content-muted mt-1">{t('channels.mcp.description')}</p>- </div>- <McpServersTab />- </section>+ <div className="h-full p-4">+ <McpServersPage /></div>);}diff --git a/app/src/components/channels/__tests__/ChannelConfigPanel.test.tsx b/app/src/components/channels/__tests__/ChannelConfigPanel.test.tsxindex 6e9ade2f80..3df8aeb9e7 100644--- a/app/src/components/channels/__tests__/ChannelConfigPanel.test.tsx+++ b/app/src/components/channels/__tests__/ChannelConfigPanel.test.tsx@@ -12,7 +12,7 @@ import ChannelConfigPanel from '../ChannelConfigPanel';// McpServersTab is a heavy async component — mock it so ChannelConfigPanel// tests stay focused on the routing logic (line 16 branch).-vi.mock('../mcp/McpServersTab', () => ({+vi.mock('../mcp/McpServersPage', () => ({default: () => <div data-testid="mcp-servers-tab">MCP Servers Tab</div>,}));diff --git a/app/src/pages/__tests__/Skills.tab-resolution.test.tsx b/app/src/pages/__tests__/Skills.tab-resolution.test.tsxindex e234a2632e..61e32710bd 100644--- a/app/src/pages/__tests__/Skills.tab-resolution.test.tsx+++ b/app/src/pages/__tests__/Skills.tab-resolution.test.tsx@@ -56,7 +56,7 @@ vi.mock('../../hooks/useChannelDefinitions', () => ({vi.mock('../../components/skills/SkillsExplorerTab', () => ({default: () => <div data-testid="tab-body-skills-explorer" />,}));-vi.mock('../../components/channels/mcp/McpServersTab', () => ({+vi.mock('../../components/channels/mcp/McpServersPage', () => ({default: () => <div data-testid="tab-body-mcp-servers" />,}));