Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(web): defer desktop updates until agents are idle #12607

ClosedDwite(GitHub profile, opens in a new tab)wants to merge 3 commits intomain fromrefs/pull/12607/headopened View on GitHub

Showing 10 changed files with 29 additions and 94 deletions (loading 8).

x
0 of 10 viewed, 10 left
26 additions and 48 deletionsapps/web/src/components/settings/SettingsPanels.tsxModified
View file
@@ -52,7 +52,6 @@
import {
canCheckForUpdate,
getDesktopUpdateButtonTooltip,
- getDesktopUpdateInstallConfirmationMessage,
isDesktopUpdateButtonDisabled,
resolveDesktopUpdateButtonAction,
} from "../../components/desktopUpdate.logic";
@@ -91,6 +90,7 @@
deriveProviderInstanceEntries,
sortProviderInstanceEntries,
} from "../../providerInstances";
+import { desktopUpdateScheduler } from "../../desktopUpdateScheduler";
import { ensureLocalApi, readLocalApi } from "../../localApi";
import { isMacPlatform } from "../../lib/utils";
import { EMPTY_SERVER_PROVIDERS } from "../../state/server";
@@ -272,7 +272,8 @@
function AboutVersionSection() {
const updateState = useDesktopUpdateState();
const [isChangingUpdateChannel, setIsChangingUpdateChannel] = useState(false);
- const [isUpdateActionPending, setIsUpdateActionPending] = useState(false);
+ const [isCheckingForUpdate, setIsCheckingForUpdate] = useState(false);
+ const [isDownloadingUpdate, setIsDownloadingUpdate] = useState(false);
​
const hasDesktopBridge = typeof window !== "undefined" && Boolean(window.desktopBridge);
const selectedUpdateChannel = updateState?.channel ?? "latest";
@@ -310,64 +311,36 @@