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(desktop): menu bar icons and an up-to-date notice
leepokaieb1ce98cba11
diff --git a/apps/desktop/src/main/index.ts b/apps/desktop/src/main/index.tsindex e56c1545..b14f93b9 100644--- a/apps/desktop/src/main/index.ts+++ b/apps/desktop/src/main/index.ts@@ -229,6 +229,7 @@ if (yieldsToInstall()) {const island = new Island({ url: rendererURL('island'), preload: join(__dirname, '../preload/index.js'), send, openApp: openChat, changed: () => tray.hostChanged() })const tray = new Tray({ openChat, openPairing, send, host, updates, island })updates.on('change', () => tray.hostChanged())+ updates.on('upToDate', () => send({ kind: 'upToDate' }))registerIPC(tray)island.register()// Voice input goes to the island while it's on, else to the chat window's composer.diff --git a/apps/desktop/src/main/tray.ts b/apps/desktop/src/main/tray.tsindex b1ef4b63..11e7bd4f 100644--- a/apps/desktop/src/main/tray.ts+++ b/apps/desktop/src/main/tray.ts@@ -22,6 +22,8 @@ interface Deps {const resources = () => (app.isPackaged ? process.resourcesPath : join(__dirname, '../../resources'))const TEXT_SIZES = [11, 12, 13, 14, 15, 16, 18]+/** macOS menus show an SF Symbol beside each action; Linux and Windows keep plain rows. */+const symbol = (name: string) => (process.platform === 'darwin' ? nativeImage.createMenuSymbol(name) : undefined)/** The menu bar icon and its system menu: macOS owns layout, selection and submenus. */export class Tray {@@ -83,9 +85,9 @@ export class Tray {: state.kind === 'failed' ? 'Host problem': (s?.status ?? 'Connected')items.push({ label: this.tr(status), enabled: false })- items.push({ label: this.tr('Open {name}').replaceAll('{name}', app.getName()), accelerator: 'CmdOrCtrl+O', click: () => this.deps.openChat() })+ items.push({ label: this.tr('Open {name}').replaceAll('{name}', app.getName()), icon: symbol('macwindow'), accelerator: 'CmdOrCtrl+O', click: () => this.deps.openChat() })if (state.kind === 'running') {- items.push({ label: this.tr('Pair iPhone…'), enabled: s?.canPair ?? false, click: () => this.deps.openPairing() })+ items.push({ label: this.tr('Pair iPhone…'), icon: symbol('qrcode'), enabled: s?.canPair ?? false, click: () => this.deps.openPairing() })}items.push({ type: 'separator' })@@ -96,22 +98,22 @@ export class Tray {break}items.push({ label: this.tr('Reinstall Codync or install the host with Homebrew.'), enabled: false })- items.push({ label: this.tr('Copy host install command'), click: () => clipboard.writeText('brew install leepokai/codync/codync-host') })+ items.push({ label: this.tr('Copy host install command'), icon: symbol('square.on.square'), click: () => clipboard.writeText('brew install leepokai/codync/codync-host') })breakcase 'notInstalled':- items.push({ label: this.tr('Install host'), click: () => void host.install() })+ items.push({ label: this.tr('Install host'), icon: symbol('arrow.down.circle'), click: () => void host.install() })breakcase 'starting':items.push({ label: this.tr('Starting the host…'), enabled: false })breakcase 'failed':items.push({ label: this.tr(state.message), enabled: false })- items.push({ label: this.tr('Restart host'), click: () => host.restart() })- items.push({ label: this.tr('Open log'), click: () => void shell.openPath(host.logPath) })+ items.push({ label: this.tr('Restart host'), icon: symbol('arrow.clockwise.circle'), click: () => host.restart() })+ items.push({ label: this.tr('Open log'), icon: symbol('list.bullet.rectangle'), click: () => void shell.openPath(host.logPath) })breakcase 'running':if (s?.approval) {- items.push({ label: this.tr('Review access request from {name}…').replaceAll('{name}', s.approval), click: () => send({ kind: 'reviewApprovals' }) })+ items.push({ label: this.tr('Review access request from {name}…').replaceAll('{name}', s.approval), icon: symbol('person.crop.circle.badge.checkmark'), click: () => send({ kind: 'reviewApprovals' }) })items.push({ type: 'separator' })}if (!s || s.bots.length === 0) {@@ -128,7 +130,7 @@ export class Tray {}if (s?.screen) {items.push({ type: 'separator' })- items.push({ label: this.tr('Remote screen'), submenu: this.screenMenu(s.screen) })+ items.push({ label: this.tr('Remote screen'), icon: symbol('display'), submenu: this.screenMenu(s.screen) })}if (s && s.usage.length) {items.push({ type: 'separator' })@@ -144,9 +146,9 @@ export class Tray {}items.push({ type: 'separator' })- items.push({ label: this.tr('Settings'), submenu: this.settingsMenu() })- if (s?.version) items.push({ label: this.tr('Version {version}').replaceAll('{version}', s.version), enabled: false })- items.push({ label: this.tr('Quit {name}').replaceAll('{name}', app.getName()), accelerator: 'CmdOrCtrl+Q', click: () => app.quit() })+ // Settings and Quit close the menu as a pair; the version lives in Settings → Updates.+ items.push({ label: this.tr('Settings'), icon: symbol('gearshape'), submenu: this.settingsMenu() })+ items.push({ label: this.tr('Quit {name}').replaceAll('{name}', app.getName()), icon: symbol('power'), accelerator: 'CmdOrCtrl+Q', click: () => app.quit() })this.tray.setContextMenu(Menu.buildFromTemplate(items))}@@ -175,6 +177,7 @@ export class Tray {{ label: this.tr('Automatically download and install'), type: 'checkbox', checked: u.autoDownload, enabled: u.supported, click: () => updates.emit('setAutoDownload', !u.autoDownload) },]if (!u.supported) items.push({ label: this.tr('Updates are available in release builds.'), enabled: false })+ items.push({ label: this.tr('Version {version}').replaceAll('{version}', app.getVersion()), enabled: false })if (u.lastCheck) items.push({ label: this.tr('Last checked {when}').replaceAll('{when}', new Date(u.lastCheck).toLocaleString()), enabled: false })if (u.error) {items.push({ label: this.tr(u.error), enabled: false })diff --git a/apps/desktop/src/main/updates.ts b/apps/desktop/src/main/updates.tsindex aa67aab0..00a052be 100644--- a/apps/desktop/src/main/updates.ts+++ b/apps/desktop/src/main/updates.ts@@ -44,7 +44,7 @@ function reopenAfterInstall() {spawn('/bin/sh', ['-c', script, shipIt, bundlePath()], { detached: true, stdio: 'ignore' }).unref()}-export class Updates extends EventEmitter {+export class Updates extends EventEmitter<{ change: []; upToDate: []; setAutoCheck: [on: boolean]; setAutoDownload: [on: boolean] }> {state: UpdateState = {supported: enabled,checking: false,@@ -145,10 +145,13 @@ export class Updates extends EventEmitter {this.set({ checking: false, lastCheck: now, ...change })}+ /** A check the person asked for answers even when there's nothing new (`upToDate`). */private upToDate() {this.installWhenDownloaded = false+ const asked = this.userInitiatedthis.userInitiated = falsethis.checked({ availableVersion: null })+ if (asked) this.emit('upToDate')}private failed(error: unknown) {diff --git a/apps/desktop/src/renderer/views/ChatWindow.tsx b/apps/desktop/src/renderer/views/ChatWindow.tsxindex ff83a6f5..c3bd444b 100644--- a/apps/desktop/src/renderer/views/ChatWindow.tsx+++ b/apps/desktop/src/renderer/views/ChatWindow.tsx@@ -52,6 +52,7 @@ export function ChatWindow() {const [accessSetup, setAccessSetup] = usePref(prefs.computerAccessSetup)const [showAccess, setShowAccess] = useState(false)const [confirmReset, setConfirmReset] = useState(false)+ const [upToDate, setUpToDate] = useState(false)useSSHAttachments(app)const ssh = useSSH()const showsChat = shouldShowChat(app.host.state.kind, app.computers.length, ssh.state)@@ -68,6 +69,8 @@ export function ChatWindow() {return setShowAccess(true)case 'confirmReset':return setConfirmReset(true)+ case 'upToDate':+ return setUpToDate(true)case 'reviewApprovals':return app.reviewApprovals()case 'setTextSize':@@ -141,6 +144,14 @@ export function ChatWindow() {actions={[{ title: 'Reset everything', destructive: true, action: () => void window.codync.app.resetAllData() }]}onClose={() => setConfirmReset(false)}/>+ <Dialog+ open={upToDate}+ title={tr("You're up to date")}+ message={tr('Codync {version} is currently the newest version available.').replaceAll('{version}', window.codync.appVersion)}+ actions={[]}+ cancel="OK"+ onClose={() => setUpToDate(false)}+ />{/* Approving a device: the code the device shows must match (spec §4.2 B). Closing puts it off. */}<Sheet open={approval !== null} onClose={() => approval && app.deferApproval(approval)}>{approval ? <ApprovalSheet key={approval.id} approval={approval} /> : null}diff --git a/apps/desktop/src/renderer/views/tray-summary.ts b/apps/desktop/src/renderer/views/tray-summary.tsindex cbf28330..2281d04e 100644--- a/apps/desktop/src/renderer/views/tray-summary.ts+++ b/apps/desktop/src/renderer/views/tray-summary.ts@@ -134,7 +134,6 @@ export function useTraySummary(app: AppModel) {error: app.screenError,}: null,- version: local?.hello?.version ?? null,needsAttention: app.needsAttention,textSize,usageIconStyle: iconStyle,diff --git a/apps/desktop/src/shared/ipc.ts b/apps/desktop/src/shared/ipc.tsindex 243bba62..82670714 100644--- a/apps/desktop/src/shared/ipc.ts+++ b/apps/desktop/src/shared/ipc.ts@@ -55,7 +55,6 @@ export interface TraySummary {subtitle: stringerror: string | null} | null- version: string | nullneedsAttention: booleantextSize: numberusageIconStyle: 'character' | 'original'@@ -69,6 +68,7 @@ export type WindowCommand =| { kind: 'stopBot'; ref: string }| { kind: 'reviewApprovals' }| { kind: 'confirmReset' }+ | { kind: 'upToDate' }| { kind: 'setTextSize'; size: number }| { kind: 'stepTextSize'; up: boolean | null }| { kind: 'setUsageIconStyle'; style: 'character' | 'original' }diff --git a/apps/desktop/src/shared/updates.test.ts b/apps/desktop/src/shared/updates.test.tsindex bcb4e2e5..7d38bc84 100644--- a/apps/desktop/src/shared/updates.test.ts+++ b/apps/desktop/src/shared/updates.test.ts@@ -131,8 +131,11 @@ test('the app relaunched by a chosen restart opens its own bundle once to come ftest('latest version records the last check without downloading or stopping the host', async () => {const f = updaterFixture()+ let upToDate = 0+ f.updates.on('upToDate', () => upToDate++)f.updates.check()await f.emit('update-not-available')+ assert.equal(upToDate, 1, 'the check the person asked for says so')assert.equal(f.updates.state.checking, false)assert.equal(f.updates.state.availableVersion, null)assert.equal(f.preferences.get('updatesLastCheck'), f.updates.state.lastCheck)@@ -141,8 +144,11 @@ test('latest version records the last check without downloading or stopping thetest('a latest release whose build is still uploading counts as up to date, not an error', async () => {const f = updaterFixture()+ let upToDate = 0+ f.updates.on('upToDate', () => upToDate++)f.updates.check()await f.emit('error', Object.assign(new Error('Cannot find latest-mac.yml in the latest release artifacts'), { code: 'ERR_UPDATER_CHANNEL_FILE_NOT_FOUND' }))+ assert.equal(upToDate, 1)assert.equal(f.updates.state.error, null)assert.equal(f.updates.state.checking, false)assert.equal(f.updates.state.availableVersion, null)@@ -237,9 +243,12 @@ test('failed preparation cancels Quit and reports a retryable error', async () =test('automatic checks respect opt-out and run daily after the startup check', async () => {const f = updaterFixture()+ let upToDate = 0+ f.updates.on('upToDate', () => upToDate++)await f.tick(30_000)assert.equal(f.calls.check, 1)await f.emit('update-not-available')+ assert.equal(upToDate, 0, 'scheduled checks stay silent')f.advance(3600_000)await f.tick(3600_000)assert.equal(f.calls.check, 1)diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/de.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/de.jsonindex 7879093a..b9e4947c 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/de.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/de.json@@ -1214,5 +1214,7 @@"Connecting the call": "Anruf wird verbunden","On a call · Listening": "Im Anruf · Hört zu","On a call · Speaking": "Im Anruf · Spricht",- "Call paused": "Anruf pausiert"+ "Call paused": "Anruf pausiert",+ "You're up to date": "Alles auf dem neuesten Stand",+ "Codync {version} is currently the newest version available.": "Codync {version} ist die neueste verfügbare Version."}diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/es.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/es.jsonindex 61c26411..bc984822 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/es.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/es.json@@ -1214,5 +1214,7 @@"Connecting the call": "Conectando la llamada","On a call · Listening": "En llamada · Escuchando","On a call · Speaking": "En llamada · Hablando",- "Call paused": "Llamada en pausa"+ "Call paused": "Llamada en pausa",+ "You're up to date": "Todo está al día",+ "Codync {version} is currently the newest version available.": "Codync {version} es la versión más reciente disponible."}diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/fr.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/fr.jsonindex e33cfde7..8993d4fa 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/fr.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/fr.json@@ -1214,5 +1214,7 @@"Connecting the call": "Connexion de l’appel","On a call · Listening": "En appel · À l’écoute","On a call · Speaking": "En appel · Parle",- "Call paused": "Appel en pause"+ "Call paused": "Appel en pause",+ "You're up to date": "Tout est à jour",+ "Codync {version} is currently the newest version available.": "Codync {version} est la version la plus récente disponible."}diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ja.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ja.jsonindex 9ff5cf16..ce989780 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ja.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ja.json@@ -1214,5 +1214,7 @@"Connecting the call": "通話に接続中","On a call · Listening": "通話中 · 聞いています","On a call · Speaking": "通話中 · 話しています",- "Call paused": "通話は一時停止中"+ "Call paused": "通話は一時停止中",+ "You're up to date": "最新の状態です",+ "Codync {version} is currently the newest version available.": "Codync {version} は現在入手できる最新バージョンです。"}diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ko.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ko.jsonindex f4879991..c6992d46 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ko.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ko.json@@ -1214,5 +1214,7 @@"Connecting the call": "통화 연결 중","On a call · Listening": "통화 중 · 듣는 중","On a call · Speaking": "통화 중 · 말하는 중",- "Call paused": "통화 일시정지됨"+ "Call paused": "통화 일시정지됨",+ "You're up to date": "최신 버전입니다",+ "Codync {version} is currently the newest version available.": "Codync {version}은(는) 현재 사용 가능한 최신 버전입니다."}diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hans.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hans.jsonindex ee1562e0..693d9f65 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hans.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hans.json@@ -1214,5 +1214,7 @@"Connecting the call": "正在连接通话","On a call · Listening": "通话中 · 聆听","On a call · Speaking": "通话中 · 说话",- "Call paused": "通话已暂停"+ "Call paused": "通话已暂停",+ "You're up to date": "已是最新版本",+ "Codync {version} is currently the newest version available.": "Codync {version} 是目前最新的版本。"}diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hant.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hant.jsonindex 82044f51..a790b98a 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hant.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hant.json@@ -1214,5 +1214,7 @@"Connecting the call": "正在連接通話","On a call · Listening": "通話中 · 聆聽","On a call · Speaking": "通話中 · 說話",- "Call paused": "通話已暫停"+ "Call paused": "通話已暫停",+ "You're up to date": "已是最新版本",+ "Codync {version} is currently the newest version available.": "Codync {version} 是目前最新的版本。"}diff --git a/docs/design/ui-conventions.md b/docs/design/ui-conventions.mdindex 22d241ce..d3904bd6 100644--- a/docs/design/ui-conventions.md+++ b/docs/design/ui-conventions.md@@ -27,7 +27,8 @@ window's Settings has the same controls on its Updates page. One action carrieswhole flow (`apps/desktop/src/shared/update-action.ts`, the same label in the tray, theUpdates page and the update-needed card): **Check for updates** → **Update to <version>**→ **Downloading… N%** (the Updates page adds a progress bar) → **Restart to update** →-**Restarting…**. A finished download never quits the app on its own; the person restarts,+**Restarting…**. A check the person starts that finds nothing opens a **You're up to date**+dialog in the chat window (scheduled checks stay silent). A finished download never quits the app on its own; the person restarts,or it installs once idle. While a release is available, a filled arrow badge sits rightof **Extensions** in the sidebar footer (under theExtensions icon in the collapsed rail), its tooltip the same action label; one click@@ -37,7 +38,7 @@ runs the latest version. The TUI action list has **Check for updates**. Downloadinstall go through electron-updater (`apps/desktop/src/main/updates.ts`); there is noseparate update window.-The tray menu is Electron's native `Menu` (`apps/desktop/src/main/tray.ts`), the only system menu in the desktop app. Its commands, submenus, checkboxes, usage-icon radio items, separators and keyboard navigation use system styling. Do not add custom cards, hover backgrounds, icon buttons or a window-style menu panel here.+The tray menu is Electron's native `Menu` (`apps/desktop/src/main/tray.ts`), the only system menu in the desktop app. Its commands, submenus, checkboxes, usage-icon radio items, separators and keyboard navigation use system styling. Do not add custom cards, hover backgrounds, icon buttons or a window-style menu panel here. On macOS only, action rows (Open, Pair iPhone, host actions, approval review, Remote screen, Settings, Quit) carry an SF Symbol through `nativeImage.createMenuSymbol`; status, bot and usage rows get none, and Linux and Windows keep plain rows. The app version is a row in Settings → Updates, so Settings and Quit end the menu together.The menu retains host installation/restart, bot conversation/stop actions, approval review, usage limits, remote-screen permissions, open-at-login and quit. Pairing opens a separate titled window because its QR needs a persistent scanning surface. The chat window retains its own UI conventions.diff --git a/docs/guides/updates.md b/docs/guides/updates.mdindex 06de24bc..4f642f8e 100644--- a/docs/guides/updates.md+++ b/docs/guides/updates.md@@ -17,7 +17,8 @@ progress bar. A finished download never quits the app by itself: the button beco**Restart to update**, and choosing it shows **Restarting…** while the host stops and theinstaller takes over. The relaunched app comes to the front (macOS doesn't activate an appthe installer relaunches from the background, so a one-shot `updateRelaunchInFront`-preference asks for it).+preference asks for it). A check the person starts that finds nothing new opens a+**You're up to date** dialog in the chat window; scheduled checks stay silent.While a release is available, an **Update** badge sits right of **Extensions** in thechat window's sidebar (`UpdateBadge`). One click restarts into the releasediff --git a/web/content/docs/updates.mdx b/web/content/docs/updates.mdxindex e4976ea2..1912c226 100644--- a/web/content/docs/updates.mdx+++ b/web/content/docs/updates.mdx@@ -13,7 +13,7 @@ Both offer the same controls:| Control | What it does || --- | --- |-| **Check for updates** | Checks now. When a release is found, the button reads **Update to** and the version; choose it to download. |+| **Check for updates** | Checks now. When a release is found, the button reads **Update to** and the version; choose it to download. When you already have the newest version, a dialog says so. || **Restart to update** | Appears once the release is downloaded. Restarts Codync into the new version. || **Automatically check for updates** | The daily check. || **Automatically download and install** | Downloads releases on its own and installs them when Codync is idle. |