From 8980d84f1f502578299c25e06cc37257adb9be66 Mon Sep 17 00:00:00 2001 From: Jacob Stephens Date: Sun, 7 Jun 2026 16:11:21 -0400 Subject: [PATCH] web: open the Windows app from the /auth page (cascade:// handoff) PR #13's static /auth page shows the magic-link token with a Copy button and relies on Apple Universal Links to open the native app automatically. Windows has no Universal Link for an unpackaged app, so the link minted with &app=windows (server, #14) only ever showed the copy-the-code fallback. When app=windows is present, redirect to cascade://auth?token=... so the desktop app launches and signs in, with an "Open Cascade" button as the fallback if the browser blocks the programmatic protocol navigation. The copy-the-code path remains for when the app isn't installed. Co-Authored-By: Claude Opus 4.8 (1M context) --- apps/web/public/auth/index.html | 34 +++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/apps/web/public/auth/index.html b/apps/web/public/auth/index.html index 367c405..0acd6f9 100644 --- a/apps/web/public/auth/index.html +++ b/apps/web/public/auth/index.html @@ -71,17 +71,29 @@ button:active { transform: translateY(1px); } .hint { font-size: 0.85rem; margin-top: 18px; } .err { color: #e2786e; } + .open { + display: inline-block; + margin: 0 0 18px; + padding: 12px 22px; + border-radius: 10px; + background: var(--accent); + color: #042029; + font-weight: 600; + text-decoration: none; + } + .open[hidden] { display: none; }

Sign in to Cascade

-

+

If the Cascade app is installed it should have opened automatically. Otherwise, open Cascade, then paste this sign-in code into the “paste the sign-in link” box:

+
@@ -92,11 +104,29 @@

Sign in to Cascade