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.
Rust acpagent-client-protocolai-agentsai-assistantclaudeclaude-codecodexcoding-agentscursorgeminigemini-cligrok-bot-alternativeiosiphonelinuxmacosmcpopen-sourcerustself-hosted
feat: turn on automatic updates by default
leepokaie8dc76d07650
diff --git a/apps/desktop/src/main/updates.ts b/apps/desktop/src/main/updates.tsindex aaf43217..9953c900 100644--- a/apps/desktop/src/main/updates.ts+++ b/apps/desktop/src/main/updates.ts@@ -24,7 +24,8 @@ export class Updates extends EventEmitter {availableVersion: null,staged: false,autoCheck: prefs.get('updatesAutoCheck') !== false,- autoDownload: prefs.get('updatesAutoDownload') === true,+ // On unless turned off: installs still wait until Codync is idle.+ autoDownload: prefs.get('updatesAutoDownload') !== false,lastCheck: (prefs.get('updatesLastCheck') as number | undefined) ?? null,error: null,waitingForApp: null,diff --git a/apps/desktop/src/shared/updates.test.ts b/apps/desktop/src/shared/updates.test.tsindex a3568e8f..8db22ada 100644--- a/apps/desktop/src/shared/updates.test.ts+++ b/apps/desktop/src/shared/updates.test.ts@@ -154,14 +154,14 @@ test('automatic checks respect opt-out and run daily after the startup check', aassert.equal(f.preferences.get('updatesAutoCheck'), false)})-test('background discovery downloads only after automatic download is enabled', async () => {+test('background discovery downloads by default and not once automatic download is off', async () => {const f = updaterFixture()await f.emit('update-available', release)- assert.equal(f.calls.download, 0)- f.ipc.emit('updates:autoDownload', {}, true)+ assert.equal(f.calls.download, 1)+ f.ipc.emit('updates:autoDownload', {}, false)await f.emit('update-available', release)assert.equal(f.calls.download, 1)- assert.equal(f.preferences.get('updatesAutoDownload'), true)+ assert.equal(f.preferences.get('updatesAutoDownload'), false)})for (const block of ['disabled', 'focused', 'recentInput', 'busyHost'] as const) {diff --git a/docs/guides/updates.md b/docs/guides/updates.mdindex b2276288..c6d35acd 100644--- a/docs/guides/updates.md+++ b/docs/guides/updates.md@@ -7,8 +7,8 @@ A client and a host on versions that can't work together say which one to updateRelease builds update through electron-updater from GitHub releases(`apps/desktop/src/main/updates.ts`). Open **Settings → Updates** in the menu bar-to check for a release, enable scheduled checks, or opt into automatic downloads-and installation. The chat window's Settings has the same **Check for updates**+to check for a release, turn scheduled checks off, or turn off automatic downloads+and installation (both on by default). The chat window's Settings has the same **Check for updates**action on its Updates page. Only packaged `main` builds update: `npm run dev` and builds madewith `tools/account-config.mjs dev` never replace themselves with a release.@@ -16,7 +16,7 @@ The app checks daily (hourly while a release waits for the iPhone app, below).Automatic installation waits until no Codync window is focused, there has been nokeyboard/mouse input for ten minutes, and the local host reports that it is idle.A staged update also installs when quitting. Manual installation can interrupt work.-A release whose `latest-mac.yml` names a `minApp` newer than the App Store's iPhone+A release whose `latest-mac.yml` (`latest.yml` on Windows) names a `minApp` newer than the App Store's iPhoneapp waits while an iPhone is paired with this host.Before replacement on macOS, Codync unregisters its screen helper and stops the host@@ -142,8 +142,10 @@ codync-host update --auto offUse `--port` for a host on a nondefault port. `--force` explicitly allows a manualupdate to interrupt bots. Stop a manually launched host before replacing it.-Automatic updates require an installed background service and are off by default.-They check daily while idle; failures are reported in update status.+Automatic updates are on by default (`--auto off` turns them off) for a release+binary that the installed background service runs; Homebrew and app-bundled hosts+update through their owners. They check daily while idle; failures are reported in+update status.The TUI's actionlist (`^k`) has **Check for updates**, which reports the result in the status line.diff --git a/host/src/update/mod.rs b/host/src/update/mod.rsindex c48117f5..8cc1ef5a 100644--- a/host/src/update/mod.rs+++ b/host/src/update/mod.rs@@ -11,11 +11,32 @@ use serde::{Deserialize, Serialize};use serde_json::{Value, json};use std::{path::Path, sync::Arc, time::Duration};-#[derive(Default, Deserialize, Serialize)]+#[derive(Deserialize, Serialize)]struct Config {+ /// On unless the owner turned it off; only a host that can update itself does.+ #[serde(default = "on")]automatic: bool,}+impl Default for Config {+ fn default() -> Self {+ Self { automatic: on() }+ }+}++const fn on() -> bool {+ true+}++/// A release build of a standalone binary that the installed service runs: the hosts that+/// update themselves (app bundles and Homebrew own their binaries).+fn self_updating(executable: &Path) -> bool {+ crate::environment::Environment::current().require_release_updates().is_ok()+ && install::require_standalone(executable).is_ok()+ && service::installed()+ && service::require_executable(executable).is_ok()+}+#[derive(Default, Deserialize, Serialize)]#[serde(rename_all = "camelCase")]struct State {@@ -68,7 +89,7 @@ fn status_at(executable: &Path) -> Result<Value> {let config: Config = read("update-config.json")?;Ok(json!({"currentVersion": env!("CARGO_PKG_VERSION"), "method": install::method(executable),- "automatic": config.automatic, "state": state,+ "automatic": config.automatic && self_updating(executable), "state": state,}))}@@ -267,6 +288,9 @@ pub async fn automatic_loop(hub: Arc<Hub>) {continue;}last_check = Some(tokio::time::Instant::now());+ if !service::current_exe().is_ok_and(|exe| self_updating(&exe)) {+ continue;+ }match check().await {Ok(status) if status["state"]["availableVersion"].is_string() => {let port = hub.port;