generated from nhcarrigan/template
fix: auto-boss no longer halts on client/server save race condition #91
Reference in New Issue
Block a user
Delete Branch "fix/auto-boss-sync"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Fixes #86. When the client state is ahead of the server save, the auto-boss tick would receive a "Boss is not currently available" error from the API. This error was already acknowledged as an expected race condition and suppressed from telemetry — but it was still setting the error state and turning auto-boss off.
Root Cause
The
catchhandler treated all errors identically: setautoBossError, turn offautoBoss. The race-condition case should instead silently skip so the next tick can retry naturally.Fix
When the error is
"Boss is not currently available", return early from thecatchhandler. Thefinallyblock still runs, resettingisAutoBossingReference.current = false, so the next tick retries cleanly.✨ This PR was created with help from Hikari~ 🌸