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:
dekun
2026-07-02 23:01:50 +08:00
parent 6710692dfb
commit 93bdce3568
2 changed files with 15 additions and 10 deletions
+2 -2
View File
@@ -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;
}