Skip to content

Distinguish unread vs default in strategy switch summary - #96

Merged
Pigbibi merged 1 commit into
mainfrom
fix/console-summary-default-vs-unread
Jun 27, 2026
Merged

Distinguish unread vs default in strategy switch summary#96
Pigbibi merged 1 commit into
mainfrom
fix/console-summary-default-vs-unread

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Summary

  • 当前期权层: show 策略默认:开启 (with family/ratio detail when available) when the variable is unset but strategy state is readable; keep 未读取 only when no current entry.
  • 当前允许融资: show 平台默认:允许融资 when unset; keep 未读取 when account state cannot be loaded.
  • Use effective defaults when detecting pending changes so unset fields do not falsely appear as changes.

Test plan

  • python3 scripts/sync_strategy_switch_page_asset.py
  • node tests/strategy_switch_worker_validation.mjs
  • Verify summary shows 策略默认 / 平台默认 instead of 未读取 when variables are unset
  • Verify 未读取 still appears when current-strategies cannot be loaded

Made with Cursor

…ions.

Show platform or strategy defaults when GitHub variables are unset but account state is known, and reserve notRead for cases where current config could not be loaded.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Pigbibi
Pigbibi merged commit a69300e into main Jun 27, 2026
1 check passed
@Pigbibi
Pigbibi deleted the fix/console-summary-default-vs-unread branch June 27, 2026 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant