fix: we load extensions when agent starts so don't do it up front (#6350)
This commit is contained in:
@@ -14,7 +14,6 @@ interface ChatContextType {
|
||||
clearRecipe: () => void;
|
||||
// Context identification
|
||||
contextKey: string; // 'hub' or 'pair-{sessionId}'
|
||||
agentWaitingMessage: string | null;
|
||||
}
|
||||
|
||||
const ChatContext = createContext<ChatContextType | undefined>(undefined);
|
||||
@@ -24,14 +23,12 @@ interface ChatProviderProps {
|
||||
chat: ChatType;
|
||||
setChat: (chat: ChatType) => void;
|
||||
contextKey?: string; // Optional context key, defaults to 'hub'
|
||||
agentWaitingMessage: string | null;
|
||||
}
|
||||
|
||||
export const ChatProvider: React.FC<ChatProviderProps> = ({
|
||||
children,
|
||||
chat,
|
||||
setChat,
|
||||
agentWaitingMessage,
|
||||
contextKey = 'hub',
|
||||
}) => {
|
||||
const resetChat = () => {
|
||||
@@ -69,7 +66,6 @@ export const ChatProvider: React.FC<ChatProviderProps> = ({
|
||||
setRecipe,
|
||||
clearRecipe,
|
||||
contextKey,
|
||||
agentWaitingMessage,
|
||||
};
|
||||
|
||||
return <ChatContext.Provider value={value}>{children}</ChatContext.Provider>;
|
||||
|
||||
Reference in New Issue
Block a user