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
Revert "fix(desktop): keep the managed host on the app's cloud"
leepokai09a588d92e0c
diff --git a/apps/desktop/src/renderer/store/cloud.ts b/apps/desktop/src/renderer/store/cloud.tsindex 4145f339..9b18d333 100644--- a/apps/desktop/src/renderer/store/cloud.ts+++ b/apps/desktop/src/renderer/store/cloud.ts@@ -83,8 +83,6 @@ export class CloudModel extends Observable {computers: CloudComputer[] = []private registeredFor: string | null = nullprivate enablingCloud = false- /** Hosts already pointed at this app's cloud this run (a host-side env override can't be moved). */- private aligned = new Set<string>()private autoClaiming = falseconstructor(private app: AppModel) {@@ -104,7 +102,6 @@ export class CloudModel extends Observable {/** Re-evaluated on every account or store change. */private tick() {- this.alignCloud()const user = this.userIdif (!user) {if (this.computers.length) {@@ -158,19 +155,6 @@ export class CloudModel extends Observable {.finally(() => (this.enablingCloud = false))}- /**- * The host this app manages uses this build's cloud: a release host bundled into a dev app- * would otherwise sit on main while the app and a Debug iPhone sign in to dev.- */- private alignCloud() {- const store = this.app.local- const status = store?.cloud- if (!account.cloudURL || !store || store.connection.kind !== 'online' || !status?.enabled) return- if (status.url === account.cloudURL || this.aligned.has(store.computer.id)) return- this.aligned.add(store.computer.id)- void this.enableCloud(store).catch(() => {})- }-/** Signed in, this computer joins the account on its own, unless the user took it out of it. */private autoClaim() {const user = this.userId@@ -259,9 +243,9 @@ export class CloudModel extends Observable {}}- /** The host gets this app's cloud; a build without one keeps the host's. */+ /** A host without a cloud URL of its own gets this app's. */private async enableCloud(store: BotStore) {- const url = account.cloudURL+ const url = store.cloud?.url ? null : account.cloudURLif (!store.cloud?.url && !url) throw new CloudError(400, 'badRequest', 'This build of Codync has no cloud to connect to.')return (await store.ready()).call<CloudStatus>('setCloud', { enabled: true, url }, 30_000)}