fix: [ENG-2941] tolerate missing body in auth:getState (#709)
TUI sends no body for auth:getState, so the {projectPath} destructure
added in #653 threw and the existing catch-all swallowed it into
{isAuthorized: false} — forcing the TUI into the provider chooser and
re-prompting byterover login on every startup. The valid token already
proves the user is logged in; treat projectPath as optional and pull it
via optional chaining so a missing body returns the correct auth state. B
bao-byterover committed
9ffe89a5cd259c75fb1ebb146db971e79130cc05
Parent: 0ba28a8
Committed by GitHub <noreply@github.com>
on 5/27/2026, 2:45:30 AM