mirror of
https://github.com/block/buzz.git
synced 2026-11-08 18:31:56 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user