Open
Description
Problem
When a user enables a new model in the Configuration panel (Configuration.tsx), the model doesn't immediately appear in the chat panel dropdown. The user has to refresh the screen to see the newly enabled model.
Current Behavior
- User opens Configuration → Models tab
- User enables a new model
- User goes back to chat panel
- Model dropdown still shows old list of models
- User must refresh the page to see the new model
Expected Behavior
When a model is enabled/disabled in the Configuration panel, the chat panel model dropdown should immediately reflect the change without requiring a page refresh.
Technical Details
-
Affected files:
src/frontend/src/components/Configuration/Configuration.tsx
(line 364 - ModelConfiguration)src/frontend/src/components/Chat/WorkflowChat.tsx
(lines 265-290 - model fetching)src/frontend/src/components/Chat/ChatPanel.tsx
-
Root cause: The WorkflowChat component fetches models only on mount (useEffect line 266) and doesn't listen for model configuration changes
Proposed Solution
Implement real-time synchronization between Configuration and Chat components:
- Add a global state management for model updates (Zustand store)
- Update ModelConfiguration to trigger model refresh when changes are made
- Update WorkflowChat to listen for model configuration changes
- Alternatively, use a custom event system for component communication
Acceptance Criteria
- Enabling a model in Configuration immediately updates chat dropdown
- Disabling a model in Configuration immediately removes it from chat dropdown
- No page refresh required
- Model changes persist across component navigation
- Performance impact is minimal
Priority
Medium - UX improvement that affects user workflow efficiency
Labels
- bug
- frontend
- models
- ux-improvement
Metadata
Metadata
Assignees
Labels
No labels