Strategy list does not auto-select the newly created strategy
Describe the bug When a user successfully creates a new strategy, the sidebar list updates to include the new item, but the UI fails to automatically shift focus to it. Instead, the selection remains on the previously selected strategy (or the default one). This creates a disconnect, as the user usually intends to work on the strategy they just created.
To Reproduce
Note: set AGENT_DEBUG_MODE=true to trace model behavior locally.
Steps to reproduce the behavior:
- Navigate to the strategy management interface.
- Click the button to create a new strategy.
- Fill in the required details and submit/save the new strategy.
- Observe the strategy list sidebar after the creation process completes.
- See error: The newly created strategy appears in the list but is not selected; the previous selection remains active.
Expected behavior Immediately after a new strategy is successfully created, the system should automatically select and highlight it in the sidebar so the user can begin viewing or editing it without extra steps.
Actual behavior The list refreshes to show the new item, but the focus/highlight remains on the strategy that was selected prior to the creation action.
Screenshots N/A
Environment
- OS: macOS
- Browser: Chrome
- ValueCell version: latest main
Additional context This results in a poor user experience, requiring the user to manually scroll through the list to locate the item they just created.