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): an SSH computer's full settings unfold from this computer's can-use list
leepokai5f5912ae8718
diff --git a/apps/desktop/src/renderer/views/settings/AuthorizedDevicesSection.tsx b/apps/desktop/src/renderer/views/settings/AuthorizedDevicesSection.tsxindex 5bc6d19c..d14de5fe 100644--- a/apps/desktop/src/renderer/views/settings/AuthorizedDevicesSection.tsx+++ b/apps/desktop/src/renderer/views/settings/AuthorizedDevicesSection.tsx@@ -7,13 +7,12 @@ import { HStack, IconSlot, VStack } from '../../components/Stack'import { Text } from '../../components/Text'import { useModel } from '../../lib/observable'import type { BotStore } from '../../store/bot-store'-import { deviceIcon, errorText, isMac, liveClient, relativeDay } from './parts'+import { deviceIcon, errorText, liveClient, relativeDay } from './parts'import { useTr } from '../../lib/use-language'-import { useApp } from '../../store/context'/** The devices that can use a computer this app manages, each one revocable. */-export function AuthorizedDevicesSection({ store, viaSSH }: { store: BotStore; /** The computer is reached over SSH: this one is using it, though it isn't a paired device. */ viaSSH: boolean }) {+export function AuthorizedDevicesSection({ store }: { store: BotStore }) {const tr = useTr()useModel(store)const [devices, setDevices] = useState<AuthorizedDevice[] | { error: string } | null>(null)@@ -51,8 +50,7 @@ export function AuthorizedDevicesSection({ store, viaSSH }: { store: BotStore; /: 'error' in devices? [<Text key="error" tone="danger" className="settings-appear">{devices.error}</Text>]: [- ...(viaSSH ? [<ThisComputerRow key="ssh" connected={online} />] : []),- ...(devices.length === 0 && !viaSSH+ ...(devices.length === 0? [<Text key="none" tone="secondary">{tr(`None yet. Pair an iPhone, or approve one from your account.`)}</Text>]: []),...devices.map((device) => (@@ -80,23 +78,6 @@ export function AuthorizedDevicesSection({ store, viaSSH }: { store: BotStore; /)}-/** This computer among a computer's users, when it reaches it over SSH. */-function ThisComputerRow({ connected }: { connected: boolean }) {- const tr = useTr()- const name = useApp().local?.hostName ?? tr(isMac ? 'This Mac' : 'This computer')- return (- <HStack gap={8} className="settings-row settings-appear">- <IconSlot width={18} tone="secondary">- <Icon name="desktopcomputer" size={13} />- </IconSlot>- <VStack grow className="settings-stack">- <span>{name}</span>- <Text size="caption" tone="tertiary">{[tr(isMac ? 'This Mac' : 'This computer'), tr('Over SSH'), ...(connected ? [tr('Connected')] : [])].join(' · ')}</Text>- </VStack>- </HStack>- )-}-function deviceDetail(device: AuthorizedDevice, tr: (text: string) => string) {const paired = device.source === 'account' ? 'Approved through the account' : 'Paired with a QR code'if (device.connected) return tr(`${paired} · connected`)diff --git a/apps/desktop/src/renderer/views/settings/ComputersUsedSection.tsx b/apps/desktop/src/renderer/views/settings/ComputersUsedSection.tsxindex 17068c49..e76af414 100644--- a/apps/desktop/src/renderer/views/settings/ComputersUsedSection.tsx+++ b/apps/desktop/src/renderer/views/settings/ComputersUsedSection.tsx@@ -1,34 +1,41 @@-import { CardSection } from '../../components/Controls'+import { useState, type ReactNode } from 'react'+import { CardSection, Reveal } from '../../components/Controls'import { Icon } from '../../components/Icon'-import { HStack, IconSlot, VStack } from '../../components/Stack'+import { IconSlot, VStack } from '../../components/Stack'import { Text } from '../../components/Text'import { useModel } from '../../lib/observable'import { useTr } from '../../lib/use-language'import type { BotStore } from '../../store/bot-store'import { useApp } from '../../store/context'-/**- * The computers a computer can use. This one reaches the computers it manages over SSH; those- * hold no connection back, so theirs stays empty.- */-export function ComputersUsedSection({ store }: { store: BotStore }) {+/** The computers this computer can use (the ones it manages over SSH); one unfolds to its full settings. */+export function ComputersUsedSection({ store, details }: { store: BotStore; details: (computer: BotStore) => ReactNode }) {const tr = useTr()const app = useApp()- const used = store === app.local ? app.managedStores.filter((s) => s !== store) : []+ const [open, setOpen] = useState<string | null>(null)+ const used = app.managedStores.filter((s) => s !== store)return (- <CardSection title={tr('{name} can use').replaceAll('{name}', store.hostName)}>- {used.length === 0- ? [<Text key="none" tone="secondary">{tr('None yet.')}</Text>]- : used.map((computer) => <UsedComputerRow key={computer.computer.id} computer={computer} />)}- </CardSection>+ <VStack gap={16}>+ <CardSection title={tr('{name} can use').replaceAll('{name}', store.hostName)}>+ {used.length === 0+ ? [<Text key="none" tone="secondary">{tr('None yet.')}</Text>]+ : used.map((computer) => (+ <UsedComputerRow key={computer.computer.id} computer={computer} open={open === computer.computer.id}+ toggle={() => setOpen(open === computer.computer.id ? null : computer.computer.id)} />+ ))}+ </CardSection>+ {used.map((computer) => (+ <Reveal key={computer.computer.id} show={open === computer.computer.id}>{details(computer)}</Reveal>+ ))}+ </VStack>)}-function UsedComputerRow({ computer }: { computer: BotStore }) {+function UsedComputerRow({ computer, open, toggle }: { computer: BotStore; open: boolean; toggle: () => void }) {const tr = useTr()useModel(computer)return (- <HStack gap={8} className="settings-row settings-appear">+ <button className="settings-row settings-appear" aria-expanded={open} onClick={toggle}><IconSlot width={18} tone="secondary"><Icon name="desktopcomputer" size={13} /></IconSlot>@@ -36,6 +43,7 @@ function UsedComputerRow({ computer }: { computer: BotStore }) {<span>{computer.hostName}</span><Text size="caption" tone="tertiary">{`${tr('Over SSH')} · ${tr(computer.connectionLabel)}`}</Text></VStack>- </HStack>+ <Icon name={open ? 'chevron.up' : 'chevron.down'} size={10} color="var(--secondary)" />+ </button>)}diff --git a/apps/desktop/src/renderer/views/settings/ComputersView.tsx b/apps/desktop/src/renderer/views/settings/ComputersView.tsxindex 4e730a7e..1e6d4af8 100644--- a/apps/desktop/src/renderer/views/settings/ComputersView.tsx+++ b/apps/desktop/src/renderer/views/settings/ComputersView.tsx@@ -44,7 +44,8 @@ export function ComputersView() {return (<div className="settings-computers"><VStack gap={44} className="settings-computers-content">- {managed.map((store) => (+ {/* With this computer present, the SSH computers sit in its "can use" section. */}+ {managed.filter((store) => !app.local || store === app.local).map((store) => (<ManagedComputerCard key={store.computer.id} store={store} ssh={sshState.isSSH(store.computer.id)} />))}@@ -98,7 +99,7 @@ export function ComputersView() {const isMacLabel = thisMac === 'this Mac' ? 'This Mac' : 'This computer'/** This computer or an SSH computer: relay, account membership, the Codync it runs, pairing and authorized devices. */-function ManagedComputerCard({ store, ssh: overSSH }: { store: BotStore; ssh: boolean }) {+function ManagedComputerCard({ store, ssh: overSSH, nested = false }: { store: BotStore; ssh: boolean; /** Shown under another computer's "can use": its own users aren't listed there. */ nested?: boolean }) {const tr = useTr()const app = useApp()const account = useAccount()@@ -240,9 +241,11 @@ function ManagedComputerCard({ store, ssh: overSSH }: { store: BotStore; ssh: bo]}</CardSection>- <ComputersUsedSection store={store} />+ {store === app.local ? (+ <ComputersUsedSection store={store} details={(computer) => <ManagedComputerCard store={computer} ssh nested />} />+ ) : null}- <AuthorizedDevicesSection store={store} viaSSH={overSSH} />+ {nested ? null : <AuthorizedDevicesSection store={store} />}<Sheet open={showVoice} onClose={() => setShowVoice(false)}><StoreContext.Provider value={store}>diff --git a/apps/desktop/src/renderer/views/settings/settings.css b/apps/desktop/src/renderer/views/settings/settings.cssindex be43d0e7..bfb3f042 100644--- a/apps/desktop/src/renderer/views/settings/settings.css+++ b/apps/desktop/src/renderer/views/settings/settings.css@@ -85,6 +85,10 @@gap: 10px;width: 100%;}+/* A row that unfolds more. */+button.settings-row {+ text-align: left;+}.settings-stack {display: flex;flex-direction: column;diff --git a/docs/guides/accounts-and-ssh.md b/docs/guides/accounts-and-ssh.mdindex 0110a62e..a2e11c8d 100644--- a/docs/guides/accounts-and-ssh.md+++ b/docs/guides/accounts-and-ssh.md@@ -215,7 +215,7 @@ first). See [desktop app](../architecture/desktop-app.md).*Relay address* and, for a private relay, a write-only *Relay token* (`setCloudUrl`; thehost's `cloudStatus` says `relay: "private"` and `tokenSet`, and there the account rows are hiddenand auto-claim never runs), *Add to account* (claim: `POST /v1/claims` → loopback `claimSign` → complete) and-*Remove from account* (`unclaim`), a pairing QR, the computers it can use (this computer: its SSH computers) and the devices that can use it, with revoke (an SSH computer lists this one there).+*Remove from account* (`unclaim`), a pairing QR, and, for this computer only, the computers it can use (its SSH computers) and the devices that can use it, with revoke.Signed in, this computer joins the account on its own once per host identity; an identitythat was already in the account and was removed (here or from a phone) is never re-addedsilently, only through *Add to account*. The section below, *Other computers in your account*,