mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-26 03:31:24 +08:00
* refactor(AgentModal): simplify trigger prop structure and mark Agents as deprecated - Replace trigger prop with children for simpler component usage - Add deprecation notice to Agents component * fix(AgentModal): set empty default model instead of 'claude-4-sonnet' The default model should be empty to require explicit selection rather than defaulting to a specific model * fix(AgentModal): wrap children in conditional check to prevent undefined errors * refactor(agent-modal): simplify modal control by removing trigger props Remove the trigger props pattern from AgentModal component and use explicit isOpen/onClose control. This makes the component's behavior more predictable and aligns with the usage pattern in the Agents page where modal state is managed externally. Also remove unused ReactNode import and clean up related comments. * refactor(UnifiedAddButton): replace useState with useDisclosure for agent modal Use useDisclosure hook for better state management of agent modal |
||
|---|---|---|
| .. | ||
| src | ||
| index.html | ||
| miniWindow.html | ||
| selectionAction.html | ||
| selectionToolbar.html | ||
| traceWindow.html | ||