Skip to content

fix(boss): distinguish environment rejection from auth expiry#2127

Open
jiyangnan wants to merge 1 commit into
jackwener:mainfrom
jiyangnan:codex/fix-boss-code37-classification
Open

fix(boss): distinguish environment rejection from auth expiry#2127
jiyangnan wants to merge 1 commit into
jackwener:mainfrom
jiyangnan:codex/fix-boss-code37-classification

Conversation

@jiyangnan

Copy link
Copy Markdown

Summary

  • distinguish BOSS code 37 environment-anomaly responses from expired authentication
  • keep code 7 and non-environment code 37 responses backward-compatible as auth-required
  • return a structured command error that explains re-login usually does not resolve an environment rejection

Why

BOSS can return code 37 with 您的环境存在异常. while the user remains logged in and the search page is visibly usable. Treating every code 37 response as expired cookies sends users through a repeated, ineffective login flow.

This change only corrects error classification and guidance. It does not add browser masking or verification bypass behavior.

Tests

  • npx vitest run --project adapter clis/boss
  • npm run typecheck

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