Prefer monitor slots for position limit and fix dashboard sticky count.
When active monitors exist, use their deduped symbol+direction slots so roll does not inflate the limit; only hold previous active_count on SSE when incoming drops to zero during sync. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -424,8 +424,8 @@
|
||||
: 0;
|
||||
if (
|
||||
!isNaN(incN) && !isNaN(prevN)
|
||||
&& incN < prevN
|
||||
&& (marginUsed > 0 || prevN > 0)
|
||||
&& incN === 0 && prevN > 0
|
||||
&& marginUsed > 0
|
||||
) {
|
||||
risk.status.active_count = prevN;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user