fix(desktop): isolate AI account auth probes

This commit is contained in:
2026-05-06 18:20:10 +08:00
parent a99d7a4971
commit f3487bcacf
11 changed files with 1713 additions and 270 deletions
@@ -2,6 +2,7 @@ import { readFileSync, writeFileSync } from 'node:fs'
import { join } from 'node:path'
import type { DesktopAccountInfo, DesktopRuntimeSessionSyncRequest } from '@geo/shared-types'
import { isAIPlatformId } from '@geo/shared-types'
import { shell } from 'electron'
import type {
BrowserWindow as ElectronBrowserWindow,
@@ -753,6 +754,9 @@ function registerBridgeHandlers(): void {
account: { id: string; platform: string; platformUid: string; displayName: string },
) => {
await openPublishAccountConsole(account)
if (isAIPlatformId(account.platform)) {
return null
}
void requestRuntimeAccountProbe(account.id, {
account,
force: true,