login: fall back to the device flow when the loopback listener fails

main

Commit

Soph3mo ago

If StartBrowserAuth couldn't bind the 127.0.0.1 listener (sandboxing, firewall policy, exhausted ports), entire login errored out even though the device-code flow would have worked fine. Warn on stderr with the bind error and continue with the device flow instead of stranding the user.

Co-Authored-By: Claude Fable 5 noreply@anthropic.com Entire-Checkpoint: 247398f9ecc7

Checkpoints

Login Flow Improvements and Fallback Handling

Claude CodeFable 5.[1m]
View session
Checkpoint 1