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
fix(desktop): register Windows as Windows and show desktop icons
leepokaic8fb6304e708
diff --git a/apps/desktop/src/renderer/store/cloud.ts b/apps/desktop/src/renderer/store/cloud.tsindex 9ba47e92..450a080f 100644--- a/apps/desktop/src/renderer/store/cloud.ts+++ b/apps/desktop/src/renderer/store/cloud.ts@@ -116,7 +116,7 @@ export class CloudModel extends Observable {// Signed in: make this computer known to the account, then list its computers.void (async () => {try {- await request('POST', 'v1/devices', { name: await deviceName(), platform: window.codync.platform === 'darwin' ? 'macos' : 'linux' }, true)+ await request('POST', 'v1/devices', { name: await deviceName(), platform: { darwin: 'macos', linux: 'linux', win32: 'windows' }[window.codync.platform] }, true)} catch (error) {this.fail(error)}diff --git a/apps/desktop/src/renderer/views/settings/ApprovalSheet.tsx b/apps/desktop/src/renderer/views/settings/ApprovalSheet.tsxindex bb4360fa..9492e421 100644--- a/apps/desktop/src/renderer/views/settings/ApprovalSheet.tsx+++ b/apps/desktop/src/renderer/views/settings/ApprovalSheet.tsx@@ -5,7 +5,7 @@ import { ModalHeader } from '../../components/Overlay'import { font } from '../../lib/fonts'import type { Approval } from '../../store/app-model'import { useApp } from '../../store/context'-import { errorText, Reveal, spacedCode } from './parts'+import { deviceIcon, errorText, Reveal, spacedCode } from './parts'/*** A device asks for access through the account (spec §4.2 B). The code is the only thing that@@ -36,7 +36,7 @@ export function ApprovalSheet({ approval }: { approval: Approval }) {<div style={{ width: 420, display: 'flex', flexDirection: 'column' }}><ModalHeader title="Access request" /><div style={{ display: 'flex', flexDirection: 'column', alignItems: 'center', gap: 16, padding: '0 24px 24px' }}>- <Icon name={request.platform === 'macos' ? 'laptopcomputer' : 'iphone'} size={40} weight="light" color="var(--secondary)" />+ <Icon name={deviceIcon(request.platform)} size={40} weight="light" color="var(--secondary)" /><div style={{ display: 'flex', flexDirection: 'column', alignItems: 'center', gap: 4 }}><div style={{ ...font('title3', 'semibold'), ...center }}>{request.deviceName} wants to use {approval.store.hostName}diff --git a/apps/desktop/src/renderer/views/settings/ComputersView.tsx b/apps/desktop/src/renderer/views/settings/ComputersView.tsxindex 841023a6..54769c23 100644--- a/apps/desktop/src/renderer/views/settings/ComputersView.tsx+++ b/apps/desktop/src/renderer/views/settings/ComputersView.tsx@@ -11,7 +11,7 @@ import { useAccount } from '../../store/account'import type { BotStore } from '../../store/bot-store'import { StoreContext, useApp } from '../../store/context'import { ComputerBadge } from '../ComputerBadge'-import { errorText, liveClient, relativeDay, Reveal, SectionHeader, statusText, thisMac } from './parts'+import { deviceIcon, errorText, liveClient, relativeDay, Reveal, SectionHeader, statusText, thisMac } from './parts'import { sshBridge, useSSH } from './ssh-model'import { VoiceChatSettingsView } from './VoiceChatSettingsView'@@ -242,7 +242,7 @@ function ManagedComputerCard({ store, ssh: overSSH }: { store: BotStore; ssh: bo...devices.map((device) => (<div key={device.key} className="settings-row settings-appear" style={{ gap: 8 }}><span style={{ width: 18, display: 'flex', justifyContent: 'center', color: 'var(--secondary)' }}>- <Icon name={device.platform === 'macos' ? 'laptopcomputer' : 'iphone'} size={13} />+ <Icon name={deviceIcon(device.platform)} size={13} /></span><div className="settings-stack" style={{ flex: 1 }}><span>{device.name}</span>diff --git a/apps/desktop/src/renderer/views/settings/parts.tsx b/apps/desktop/src/renderer/views/settings/parts.tsxindex 440709f1..dfcc3bbc 100644--- a/apps/desktop/src/renderer/views/settings/parts.tsx+++ b/apps/desktop/src/renderer/views/settings/parts.tsx@@ -8,6 +8,11 @@ export const isMac = window.codync.platform === 'darwin'/** "Mac" in the Mac app's copy; "computer" elsewhere. */export const thisMac = isMac ? 'this Mac' : 'this computer'+/** The icon for a device by its account platform: phones, Macs, and other desktops. */+export function deviceIcon(platform: string | null | undefined) {+ return platform === 'ios' ? 'iphone' : platform === 'macos' ? 'laptopcomputer' : 'desktopcomputer'+}+/** Keeps `children` mounted while it fades and folds away. */export function Reveal({ show, children, style }: { show: boolean; children: ReactNode; style?: CSSProperties }) {const { mounted, shown } = usePresence(show)