Commit 0fdf2d3
fix(ui): exclude non-runtime strategies from switch dropdown (#175)
strategyAllowedForAccount had a loophole: runtime_enabled was only
checked when allowed_execution_modes was empty. In paper mode, strategies
with runtime_enabled=false but paper in allowed_execution_modes (e.g.
shadow_candidate, live_candidate) would pass the filter and appear in
the strategy dropdown.
Fix: check runtime_enabled first, before any mode-specific logic.
The strategy-switch-console is for live/runtime strategies only.
Co-authored-by: Claude <noreply@anthropic.com>1 parent 7a37ed9 commit 0fdf2d3
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1584 | 1584 | | |
1585 | 1585 | | |
1586 | 1586 | | |
| 1587 | + | |
1587 | 1588 | | |
1588 | 1589 | | |
1589 | 1590 | | |
1590 | 1591 | | |
1591 | 1592 | | |
1592 | 1593 | | |
1593 | | - | |
1594 | 1594 | | |
1595 | 1595 | | |
1596 | 1596 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments