Skip to content

fix(orderbook): retry a timed-out rebalance qualification once and localize request timeouts - #356

Merged
jackhai9 merged 1 commit into
mainfrom
fix/rebalance-eligibility-timeout
Nov 13, 2026
Merged

jackhai9 merged 1 commit into
mainfrom
fix/rebalance-eligibility-timeout

Conversation

@jackhai9

Copy link
Copy Markdown
Owner

Problem

On a QUSDT tab the automatic USDT rebalance qualification showed 自动再平衡资格检查失败:signal is aborted without reason: its all-symbol position request hit the 5-second timeout once, the check never retried, and the browser's raw abort text was displayed. Other tabs had already rebalanced the account.

Change

  • runUsdtRebalanceEligibilityCheck retries a timed-out qualification once after 3 s on the existing eligibility timer, so any account change cancels it; the retry shows the same waiting status as the first attempt.
  • A failure from an older qualification window no longer overwrites a newer window's status.
  • A request timeout reads as the localized Binance 请求超时 / Binance request timed out in the qualification failure and in the automatic transfer stop status (not retried there, since a transfer may be in flight), matching the manual path.
  • Version 2.7.254; development manual updated.

Validation

  • New e2e scenarios (zh-CN and en): one timeout retries and completes the allocation; two timeouts report the localized failure without transfers or further retries; a transfer timeout reports the localized stop reason. The first two fail on 2.7.253 with the raw abort text.
  • npm test: 2693 passed. npx playwright test: 712 passed. npm run lint:tests, npm run check:binance-orderbook-trade, git diff --check pass.
  • Read-only review: approve with notes; stale-window status, lingering retry status, transfer-timeout text, test timing and doc findings addressed.
  • Not exercised live.

🤖 Generated with Claude Code

…calize request timeouts

One slow all-symbol position response failed the automatic rebalance
qualification for good and showed the browser's raw abort text. The check now
retries once after 3 seconds on the cancellable eligibility timer, ignores
failures from an older window, and reports a request timeout as the localized
"Binance 请求超时" in both the qualification and the transfer status.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jackhai9
jackhai9 merged commit 3f9d36c into main Nov 13, 2026
2 checks passed
@jackhai9
jackhai9 deleted the fix/rebalance-eligibility-timeout branch November 13, 2026 07:46
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