fix(word-addin): --login window closed before the user could sign in

↗ view on GitHub · Amalanand Muthukumaran · 2026-08-03 · 412d3529

The login waiter's done-signal was "the page left login.microsoftonline.com"
- but the flow STARTS on the logged-out office.com marketing page, which is
already off that domain, so the predicate was instantly true and the window
closed before the user touched the keyboard.

Now --login opens the real login flow and polls every 5s for an actual
signed-in state (the marketing page's Sign-in buttons disappearing),
deliberately never re-navigating while the user is on a login/signup domain
mid-flow, and exits non-zero if the window is closed or 10 minutes pass
without a session.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Repository open-legal-products/mike
Author Amalanand Muthukumaran <mamalanand3@gmail.com>
Authored
Committed
Parents b3ed17c2
Stats 1 file changed , +36 , -9
Part of Add a Word add-in for chat and tracked rewrites

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-412d3529.md from inside the repo you want the change in.

⬇ Download capture-commit-412d3529.md