You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: remove default_strategy_profile — single source of truth is GitHub variables (#173)
Problem: default_strategy_profile in platform-config.json created a false
impression that changing it would change the running strategy. In reality,
the runtime reads RUNTIME_TARGET_JSON from GitHub variables, and the two
sources could diverge silently (LongBridge TQQQ bug).
Changes:
- platform-config.json: delete default_strategy_profile from all 6 platforms
- build_config.py: delete report_default_strategy_profile_drift() and gate
- build_platform_config.py / inject_platform_config.py: stop generating it
- app.js: simplify defaultStrategyForAccount → reads only GitHub variables;
remove hardcoded fallback; remove account.default_strategy_profile reads
- worker.js: remove default_strategy_profile from KV sync/clean logic
- account-options.example.json: remove all default_strategy_profile fields
- tests: delete 6 test methods; update assertions and test data
- docs: update README.md / README.zh-CN.md / qmt README
- Regenerated: config.js, index.html, page_asset.js, app_js.js
Architecture after: one platform = one strategy source = GitHub variable
RUNTIME_TARGET_JSON. platform-config.json owns capabilities and deployment
config only. No more silent divergence between config and runtime.
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments