e58bccf6b5230e9c1c52e5927cd51d1dd06a4e6c
chat.reddit.com now redirects to www.reddit.com/chat/, and that SPA was bouncing automated logins to the /login/ wall (confirmed via the new matrix-debug.png endpoint — the captured screenshot shows the login UI, not the chat surface, despite isLoggedIn() returning true seconds earlier). Going direct to the canonical URL means the session cookie set by the automated /login form-fill is applied to the very first request instead of only after a cross-subdomain redirect, which is where it was getting dropped. Switch goto from awaited domcontentloaded on the old URL to a non-awaited domcontentloaded on the new URL so the request listener can resolve the moment the SPA fires its first authed call to matrix.redditspace.com. Adds GET /api/debug/cookies as a temporary diagnostic — returns cookies visible to www.reddit.com, chat.reddit.com, and matrix.redditspace.com (values hashed by default; ?reveal=1 to dump raw). Lets us compare what the browser holds vs. what /chat/ rejects if this doesn't fix it. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Languages
TypeScript
96.5%
CSS
3.2%
JavaScript
0.2%