Skip to content

v0.22.16

Choose a tag to compare

@ChaosLights ChaosLights released this 14 Aug 08:58
· 6 commits to master since this release
f3a26ed

Correctly distinguish Cloudflare managed challenges from expired LeetCode sessions.

The bundled legacy CLI previously converted every HTTP 401/403 into session expired. A real Python 150 Test showed that int(float(a)/b) triggered a Cloudflare HTML challenge while the same authenticated request using the equivalent int(a * 1.0 / b) was accepted and returned 9.

This release inspects the response server, content type, and challenge page before classifying the error; genuine session recovery remains unchanged. It also gives an actionable rewrite hint and reproducibly patches/verifies the bundled CLI during clean builds.

Validated by clean npm install, unit/process tests, Windows and Linux VS Code integration tests, VSIX packaging, and real LeetCode judge requests.