fix: we load extensions when agent starts so don't do it up front (#6350)

This commit is contained in:
Michael Neale
2026-01-07 17:03:51 +11:00
committed by GitHub
parent 7446cf9ed7
commit 7d751b3196
6 changed files with 21 additions and 393 deletions
-4
View File
@@ -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>;