[UI] Selected strategy resets to the first item after page refresh
Describe the bug The strategy selection state is not persisted across page reloads or list refreshes. Currently, when a user selects a specific strategy and then refreshes the page (or triggers a list refresh), the system defaults to selecting the first strategy in the list instead of maintaining the user's previous selection. This interrupts the user's workflow.
To Reproduce
Note: set AGENT_DEBUG_MODE=true to trace model behavior locally.
Steps to reproduce the behavior:
- Navigate to the 'Strategy List' page.
- Click on a strategy other than the first one (e.g., the 3rd strategy in the list).
- Refresh the browser page (or trigger an action that refreshes the list component).
- See error: The selection focus jumps back to the first strategy in the list.
Expected behavior After the page or list is refreshed, the system should persist the state (e.g., via URL params or local storage) and keep the currently selected strategy active and highlighted.
Actual behavior The application forgets the selected state and defaults to highlighting the first strategy in the list.
Screenshots N/A
Environment
- OS: macOS
- Browser: Chrome
- ValueCell version: latest main
Additional context This issue affects user experience, particularly when users are comparing data or editing settings for a specific strategy deep in the list, as they lose their context upon any refresh event.