From 4433e47038d4e3b5a66e8b5275f54d4bfe626ad3 Mon Sep 17 00:00:00 2001 From: Thomas Petersen Date: Wed, 6 May 2026 14:05:05 -0400 Subject: [PATCH] Fix composer activity type fallback Keep ChannelPane compatible with callers that only pass session agents while preserving the composer activity selector. Co-authored-by: Cursor --- desktop/src/features/channels/ui/ChannelPane.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desktop/src/features/channels/ui/ChannelPane.tsx b/desktop/src/features/channels/ui/ChannelPane.tsx index fb513c669a..c72de494c4 100644 --- a/desktop/src/features/channels/ui/ChannelPane.tsx +++ b/desktop/src/features/channels/ui/ChannelPane.tsx @@ -56,7 +56,7 @@ function getInitialThreadPanelWidth(): number { type ChannelPaneProps = { activeChannel: Channel | null; - activityAgents: BotActivityAgent[]; + activityAgents?: BotActivityAgent[]; agentSessionAgents: ManagedAgent[]; botTypingEntries: TypingIndicatorEntry[]; channelFind: ReturnType; @@ -122,8 +122,8 @@ type ChannelPaneProps = { export const ChannelPane = React.memo(function ChannelPane({ activeChannel, - activityAgents, agentSessionAgents, + activityAgents = agentSessionAgents, botTypingEntries, channelFind, currentPubkey,