Remove the transient Studio desktop auth handoff (#7542)

* Remove Studio desktop auth handoff flash

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Wasim Yousef Said 2026-07-28 13:18:03 +02:00 committed by GitHub
commit 99e1f402c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 17 additions and 23 deletions

View file

@ -395,9 +395,7 @@ function TauriWrapper({ children }: { children: ReactNode }) {
);
}
const showApp = status === "running";
const desktopBooting = status === "running" && !desktopAuthReady;
const showInteractiveApp = showApp && desktopAuthReady;
const showApp = status === "running" && desktopAuthReady;
const startupStatus = status === "running" ? "starting" : status;
const startupProgressDetail = progressDetail;
const usesCustomTitlebar = shouldUseCustomWindowTitlebar();
@ -409,28 +407,12 @@ function TauriWrapper({ children }: { children: ReactNode }) {
<TauriUpdateLayer isExternalServer={isExternalServer}>
<LlamaUpdateBanner
positioned={false}
enabled={showInteractiveApp && !hidesTitlebarSidebar}
enabled={!hidesTitlebarSidebar}
/>
{showInteractiveApp ? (
<DownloadManagerPanel positioned={false} />
) : null}
<DownloadManagerPanel positioned={false} />
</TauriUpdateLayer>
{showInteractiveApp ? <NativeIntentDrain /> : null}
{showInteractiveApp ? children : null}
{desktopBooting ? (
<div className="pointer-events-none fixed inset-x-0 bottom-5 z-[9999] flex justify-center px-4">
<div className="absolute inset-x-4 bottom-16 mx-auto flex max-w-[520px] flex-col items-center gap-2 rounded-2xl border border-border/70 bg-background/95 px-6 py-5 text-center shadow-xl">
<div className="font-medium text-sm">Preparing Unsloth</div>
<div className="text-muted-foreground text-xs">
The local backend is ready. Signing in to your desktop session
before loading chats.
</div>
</div>
<div className="rounded-full border border-border/70 bg-background/95 px-4 py-2 text-xs text-muted-foreground shadow-lg">
Signing in to desktop session...
</div>
</div>
) : null}
<NativeIntentDrain />
{children}
</>
) : (
<StartupScreen