valuecell icon indicating copy to clipboard operation
valuecell copied to clipboard

[UI] Selected strategy resets to the first item after page refresh

Open MXD66 opened this issue 11 months ago • 0 comments

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:

  1. Navigate to the 'Strategy List' page.
  2. Click on a strategy other than the first one (e.g., the 3rd strategy in the list).
  3. Refresh the browser page (or trigger an action that refreshes the list component).
  4. 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.

MXD66 avatar Dec 04 '25 08:12 MXD66