Fix MCP tools count update in plug icon indicator
- Add onMcpToolsUpdate prop to ConversationThread interface - Pass setMcpTools function from ChatApp down to ConversationThread - Connect McpServerModal onToolsUpdate to parent state update - Now plug icon will correctly show '1 (N)' when N tools are available - Fixes issue where tool count remained at 0 despite successful connection
This commit is contained in:
parent
c3624e6bbc
commit
812fdf92e3
1 changed files with 4 additions and 3 deletions
|
|
@ -143,6 +143,7 @@ const ChatApp: React.FC<ChatAppProps> = () => {
|
|||
onModelChange={handleModelChange}
|
||||
apiKeyUpdateTrigger={apiKeyUpdateTrigger}
|
||||
mcpTools={mcpTools}
|
||||
onMcpToolsUpdate={setMcpTools}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue