Fix OKX header trade stats stuck at zero after settings shell load.
Always SSR records summary on embed shell (including settings/risk/env), and refresh total/win-rate/PL ratio via account_snapshot so soft-nav cannot leave the strip blank. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -17,6 +17,14 @@ def test_embed_shell_trade_summary_only():
|
||||
assert plan.records_rows is False
|
||||
|
||||
|
||||
def test_embed_shell_settings_still_loads_header_summary():
|
||||
plan = embed_render_plan("settings", "shell")
|
||||
assert plan.records_summary is True
|
||||
assert plan.records_rows is False
|
||||
plan_risk = embed_render_plan("risk_policy", "shell")
|
||||
assert plan_risk.records_summary is True
|
||||
|
||||
|
||||
def test_embed_records_page_loads_rows():
|
||||
plan = embed_render_plan("records", "fragment")
|
||||
assert plan.records_rows is True
|
||||
|
||||
Reference in New Issue
Block a user