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 <cursoragent@cursor.com>
This commit is contained in:
Thomas Petersen
2026-05-06 14:05:05 -04:00
parent a981831af6
commit 4433e47038

View File

@@ -56,7 +56,7 @@ function getInitialThreadPanelWidth(): number {
type ChannelPaneProps = {
activeChannel: Channel | null;
activityAgents: BotActivityAgent[];
activityAgents?: BotActivityAgent[];
agentSessionAgents: ManagedAgent[];
botTypingEntries: TypingIndicatorEntry[];
channelFind: ReturnType<typeof useChannelFind>;
@@ -122,8 +122,8 @@ type ChannelPaneProps = {
export const ChannelPane = React.memo(function ChannelPane({
activeChannel,
activityAgents,
agentSessionAgents,
activityAgents = agentSessionAgents,
botTypingEntries,
channelFind,
currentPubkey,