Skip to content

Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.

fix(desktop): show a computer as updating while it restarts for an update asked here

leepokai6fac6478f555
diff --git a/apps/desktop/src/renderer/store/bot-mirror.ts b/apps/desktop/src/renderer/store/bot-mirror.ts
index 2450a145..8a0a106f 100644
--- a/apps/desktop/src/renderer/store/bot-mirror.ts
+++ b/apps/desktop/src/renderer/store/bot-mirror.ts
@@ -123,6 +123,12 @@ export class BotMirror extends Observable {
offerHostUpdate(this.hostUpdate, this.hello.canUpdate === true, now), this.hostName, this.hello.os)
}
+ /** Out of reach while an update asked from here installs: the computer restarts on its own, so it
+ * reads as updating, not as a lost connection (kit's `BotStore.isUpdating`). */
+ get isUpdating(): boolean {
+ return this.connection.kind !== 'online' && this.hostUpdateOffer.kind === 'updating'
+ }
+
/** When an update asked from here stops reading as under way; null when none was asked. */
get hostUpdateWaitEnds(): number | null {
return this.hostUpdate?.kind === 'requested' ? this.hostUpdate.at + HOST_UPDATE_WAIT : null
diff --git a/apps/desktop/src/renderer/views/settings/ComputersView.tsx b/apps/desktop/src/renderer/views/settings/ComputersView.tsx
index 1e6d4af8..83eda7de 100644
--- a/apps/desktop/src/renderer/views/settings/ComputersView.tsx
+++ b/apps/desktop/src/renderer/views/settings/ComputersView.tsx
@@ -235,7 +235,8 @@ function ManagedComputerCard({ store, ssh: overSSH, nested = false }: { store: B
]
: []),
// On macOS and Windows this computer's Codync is this app: its version and update are on the Updates page.
- online && store.hello && !(store === app.local && window.codync.platform !== 'linux')
+ // Kept while an update asked from here restarts the computer: its spinner says it's updating.
+ (online || store.isUpdating) && store.hello && !(store === app.local && window.codync.platform !== 'linux')
? <CodyncVersionRow key="codync" store={store} />
: null,
]}
diff --git a/apps/desktop/src/renderer/views/settings/parts.tsx b/apps/desktop/src/renderer/views/settings/parts.tsx
index e8e4842e..69841d2f 100644
--- a/apps/desktop/src/renderer/views/settings/parts.tsx
+++ b/apps/desktop/src/renderer/views/settings/parts.tsx
@@ -40,6 +40,7 @@ export function relativeDay(date: Date, now = new Date()) {
/** One short line for a computer's connection, used next to its name. */
export function statusText(store: BotStore) {
+ if (store.isUpdating) return 'Updating…'
const c = store.connection
switch (c.kind) {
case 'online':