Skip to content

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.

fix: hold the bot import open while it runs and raise the app floor

leepokaid475389db23e
diff --git a/apps/android/WhatsNew.md b/apps/android/WhatsNew.md
index 9a5b2de1..4be4d93d 100644
--- a/apps/android/WhatsNew.md
+++ b/apps/android/WhatsNew.md
@@ -7,9 +7,11 @@ released version's section; a version without one gets the PRs' "What's New: And
else a generic "Bug fixes and improvements" line. Delete old sections.
-->
-## 2.33.6
+## 2.34.0
### zh-Hant
-- 「網路」功能換上 Codync Network 自己的圖示,在電腦頁、電腦選單與網路畫面中都一樣。
+- 自訂圖示現在只用在 bot 上,代理程式一律顯示自己的標誌。
+- 只用 Cursor CLI 登入時,也能看到 Cursor 的用量。
### en-US
-- Network now has its own Codync Network icon on the Computers screen, in the computer menu and on the Network screen.
+- Custom icons are now for bots only; agents always show their own logo.
+- Cursor usage now shows when you sign in with the Cursor CLI only.
diff --git a/apps/desktop/src/renderer/store/bot-import.test.ts b/apps/desktop/src/renderer/store/bot-import.test.ts
new file mode 100644
index 00000000..21f85bf4
--- /dev/null
+++ b/apps/desktop/src/renderer/store/bot-import.test.ts
@@ -0,0 +1,28 @@
+import assert from 'node:assert/strict'
+import { test } from 'node:test'
+import type { BotStore } from './bot-store'
+import { BotImport, type ImportPlan } from './bot-import.ts'
+
+test('a bot and a group sharing a key are picked apart', async () => {
+ const sent: unknown[][] = []
+ const store = { ready: async () => ({ call: async (method: string, body: unknown) => { sent.push([method, body]); return { bots: [], groups: [], warnings: [] } } }) }
+ const model = new BotImport(store as unknown as BotStore)
+ const plan = {
+ source: 'grok',
+ bots: [{ key: 'team', name: 'Team', description: '', skills: [], routines: [], memories: [], files: null }],
+ groups: [{ key: 'team', name: 'Team', members: ['team'] }],
+ warnings: [],
+ } satisfies ImportPlan
+ model.step = { kind: 'review', path: '/export.zip', plan, skipped: [] }
+
+ model.toggle('group', 'team')
+ assert.equal(model.picked('bot', 'team'), true)
+ assert.equal(model.picked('group', 'team'), false)
+ await model.importPicked()
+ assert.deepEqual(sent, [['importBots', { path: '/export.zip', bots: ['team'], groups: [] }]])
+
+ model.step = { kind: 'review', path: '/export.zip', plan, skipped: [] }
+ model.toggle('bot', 'team')
+ assert.equal(model.groupAvailable(['team']), false)
+ assert.equal(model.canImport, false)
+})
diff --git a/apps/desktop/src/renderer/store/bot-import.ts b/apps/desktop/src/renderer/store/bot-import.ts
index 3d86d4e7..902aebea 100644
--- a/apps/desktop/src/renderer/store/bot-import.ts
+++ b/apps/desktop/src/renderer/store/bot-import.ts
@@ -1,4 +1,4 @@
-import { Observable } from '../lib/observable'
+import { Observable } from '../lib/observable.ts'
import type { BotStore } from './bot-store'
/** What an export file holds, as the host reads it (`previewImport`). */
@@ -23,13 +23,18 @@ export type ImportStep =
/** Bringing bots over from another app's export file on this computer (the host's `import`). */
export class BotImport extends Observable {
step: ImportStep = { kind: 'start' }
- /** Bot and group keys left out by the user. */
- off = new Set<string>()
+ /** Bots and groups left out by the user (a bot and a group may share a key). */
+ off = { bot: new Set<string>(), group: new Set<string>() }
busy = false
copied = false
error: string | null = null
- constructor(private store: BotStore) { super() }
+ private store: BotStore
+
+ constructor(store: BotStore) {
+ super()
+ this.store = store
+ }
/** The skill that writes the export in Grok Bot, on the clipboard. */
async copySkill() {
@@ -45,35 +50,36 @@ export class BotImport extends Observable {
if (!path) return
await this.run(async () => {
const read = await (await this.store.ready()).call<{ plan: ImportPlan; skipped: string[] }>('previewImport', { path }, 120_000)
- this.off = new Set()
+ this.off = { bot: new Set(), group: new Set() }
this.step = { kind: 'review', path, ...read }
})
}
- picked(key: string) {
- return !this.off.has(key)
+ picked(kind: 'bot' | 'group', key: string) {
+ return !this.off[kind].has(key)
}
- toggle(key: string) {
- if (this.off.has(key)) this.off.delete(key)
- else this.off.add(key)
+ toggle(kind: 'bot' | 'group', key: string) {
+ const off = this.off[kind]
+ if (off.has(key)) off.delete(key)
+ else off.add(key)
this.changed()
}
/** A group can come along only with one of its bots. */
groupAvailable(members: string[]) {
- return members.some((key) => this.picked(key))
+ return members.some((key) => this.picked('bot', key))
}
get canImport() {
- return this.step.kind === 'review' && this.step.plan.bots.some((b) => this.picked(b.key)) && !this.busy
+ return this.step.kind === 'review' && this.step.plan.bots.some((b) => this.picked('bot', b.key)) && !this.busy
}
async importPicked() {
const step = this.step
if (step.kind !== 'review' || !this.canImport) return
- const bots = step.plan.bots.map((b) => b.key).filter((k) => this.picked(k))
- const groups = step.plan.groups.filter((g) => this.picked(g.key) && this.groupAvailable(g.members)).map((g) => g.key)
+ const bots = step.plan.bots.map((b) => b.key).filter((k) => this.picked('bot', k))
+ const groups = step.plan.groups.filter((g) => this.picked('group', g.key) && this.groupAvailable(g.members)).map((g) => g.key)
await this.run(async () => {
const result = await (await this.store.ready()).call<ImportResult>('importBots', { path: step.path, bots, groups }, 600_000)
this.step = { kind: 'done', result }
diff --git a/apps/desktop/src/renderer/views/bots/ImportBotsView.tsx b/apps/desktop/src/renderer/views/bots/ImportBotsView.tsx
index 3460c605..1f0b1a87 100644
--- a/apps/desktop/src/renderer/views/bots/ImportBotsView.tsx
+++ b/apps/desktop/src/renderer/views/bots/ImportBotsView.tsx
@@ -1,7 +1,6 @@
import { useState } from 'react'
import { BotImport, type ImportPlan, type ImportResult } from '../../store/bot-import'
import type { BotStore } from '../../store/bot-store'
-import { StoreContext, useStore } from '../../store/context'
import { useModel } from '../../lib/observable'
import { useTr } from '../../lib/use-language'
import { Button, CardForm, CardSection, RowLabel, Spinner, Switch } from '../../components/Controls'
@@ -17,22 +16,21 @@ export function ImportBotsSheet({ store, open, onClose, maxHeight }: {
onClose: () => void
maxHeight?: number
}) {
+ // A fresh import each time the sheet opens.
+ const [model, setModel] = useState<BotImport | null>(null)
+ if (open && store && !model) setModel(new BotImport(store))
+ if (!open && model) setModel(null)
+ useModel(model)
+ // The host keeps importing after the sheet closes, so it stays up until the import ends.
return (
- <Sheet open={open && !!store} onClose={onClose} maxHeight={maxHeight}>
- {open && store ? (
- <StoreContext.Provider value={store}>
- <ImportBotsView />
- </StoreContext.Provider>
- ) : null}
+ <Sheet open={open && !!model} onClose={model?.busy ? () => {} : onClose} maxHeight={maxHeight}>
+ {open && model ? <ImportBotsView model={model} /> : null}
</Sheet>
)
}
/** Bots from another app: the export steps, the bots and group chats in the file, then what came over. */
-function ImportBotsView() {
- const store = useStore()
- const [model] = useState(() => new BotImport(store))
- useModel(model)
+function ImportBotsView({ model }: { model: BotImport }) {
const step = model.step
return (
@@ -72,7 +70,7 @@ function Review({ model, plan, skipped }: { model: BotImport; plan: ImportPlan;
<CardForm>
<CardSection title="Bots">
{plan.bots.map((bot) => (
- <Switch key={bot.key} on={model.picked(bot.key)} onChange={() => model.toggle(bot.key)}>
+ <Switch key={bot.key} on={model.picked('bot', bot.key)} onChange={() => model.toggle('bot', bot.key)}>
<RowLabel label={bot.name} detail={summary(tr, bot.skills.length, bot.routines.length, bot.memories.length, bot.files !== null)} />
</Switch>
))}
@@ -80,7 +78,7 @@ function Review({ model, plan, skipped }: { model: BotImport; plan: ImportPlan;
{plan.groups.length ? (
<CardSection title="Group chats">
{plan.groups.map((group) => (
- <Switch key={group.key} on={model.picked(group.key) && model.groupAvailable(group.members)} disabled={!model.groupAvailable(group.members)} onChange={() => model.toggle(group.key)}>
+ <Switch key={group.key} on={model.picked('group', group.key) && model.groupAvailable(group.members)} disabled={!model.groupAvailable(group.members)} onChange={() => model.toggle('group', group.key)}>
<RowLabel label={group.name} detail={members(plan, group.members)} />
</Switch>
))}
@@ -123,7 +121,7 @@ function Footer({ model }: { model: BotImport }) {
<Button onClick={dismiss}>Done</Button>
) : (
<>
- <Button kind="secondary" onClick={dismiss}>Cancel</Button>
+ <Button kind="secondary" onClick={dismiss} disabled={model.busy}>Cancel</Button>
{step.kind === 'start' ? <Button onClick={() => void model.choose()} disabled={model.busy}>Choose file…</Button> : null}
{step.kind === 'review' ? <Button onClick={() => void model.importPicked()} disabled={!model.canImport}>Import</Button> : null}
</>
diff --git a/apps/ios/WhatsNew.md b/apps/ios/WhatsNew.md
index 30559e4c..10d4a9b1 100644
--- a/apps/ios/WhatsNew.md
+++ b/apps/ios/WhatsNew.md
@@ -6,9 +6,11 @@ any left). tools/asc-submit.py reads the released version's section;
a version without one gets a generic "Bug fixes and improvements" line. Delete old sections.
-->
-## 2.33.6
+## 2.34.0
### zh-Hant
-- 「網路」功能換上 Codync Network 自己的圖示,在電腦頁、電腦選單與網路畫面中都一樣。
+- 自訂圖示現在只用在 bot 上,代理程式一律顯示自己的標誌。
+- 只用 Cursor CLI 登入時,也能看到 Cursor 的用量。
### en-US
-- Network now has its own Codync Network icon on the Computers screen, in the computer menu and on the Network screen.
+- Custom icons are now for bots only; agents always show their own logo.
+- Cursor usage now shows when you sign in with the Cursor CLI only.
diff --git a/docs/reference/compatibility.md b/docs/reference/compatibility.md
index 36a0b10f..d2e8e5ab 100644
--- a/docs/reference/compatibility.md
+++ b/docs/reference/compatibility.md
@@ -141,6 +141,7 @@ Update this table in the release that changes a floor, with the reason.
| Release | Host `minApp` | Client `minHost` | Why |
|---|---|---|---|
+| 2.34.0 | 2.34.0 | 2.26.0 (iPhone, Android, desktop) | Custom icons are for bots only: `setIcon` rejects `agent:` targets, so older apps' agent icon editor would fail. |
| 2.26.0 | 2.21.0 | 2.26.0 (iPhone, Android, desktop) | What a call's voice hears comes from the host as `call` events (replies, approvals, failures, progress); the apps no longer derive it from the chat, so on an older host a call would never hear the bot. |
| 2.25.0 | 2.21.0 | 2.25.0 (iPhone, Android, desktop) | Voice calls run on the host: the apps start a call, run the voice's tools and end it through `startCall`, `callTool`, `callLines` and `endCall`, which older hosts lack (a Linux desktop or an SSH computer can run one). `logCall` stays for older apps. |
| 2.21.0 | 2.21.0 | 2.20.1 | Memory is files the bot keeps, and the apps only read it: the edit methods (`saveMemory`, `pinMemory`, `archiveMemory`, `forgetMemory`, `clearMemory`, `undoDream`, `answerMemory`, `undoMemory`, `saveMemoryFile`, `deleteMemoryFile`, `restoreMemoryFile`) are gone, so older apps' memory buttons would fail. `memory` keeps its shape, so new apps still read an older host's memory. |
diff --git a/host/src/compat.rs b/host/src/compat.rs
index 22587a52..4fc9edd5 100644
--- a/host/src/compat.rs
+++ b/host/src/compat.rs
@@ -8,7 +8,7 @@ use serde_json::Value;
/// Raise it only when this host stops sending or accepting something older clients depend on;
/// the release gate (tools/release-gate.py) then offers the release once the App Store has that
/// iPhone app.
-pub const MIN_APP: &str = "2.21.0";
+pub const MIN_APP: &str = "2.34.0";
/// The oldest host the terminal client works with.
pub const MIN_HOST: &str = "2.20.1";
diff --git a/host/src/import/export-skill.md b/host/src/import/export-skill.md
index 4f947343..cf917317 100644
--- a/host/src/import/export-skill.md
+++ b/host/src/import/export-skill.md
@@ -5,7 +5,7 @@ description: Pack the user's Grok Bot agents and group chats into one .zip file
# Export agents for Codync
-You write one `.zip` file. The user opens it in Codync (**Settings → Import bots** in the desktop app, or
+You write one `.zip` file. The user opens it in Codync (**+ → Import bots…** in the desktop app, or
`codync-host import <file>` in a terminal) on the same computer. Codync reads it there; nothing is uploaded.
Codync checks the manifest strictly, so keep to the format below.
@@ -39,7 +39,7 @@ Codync checks the manifest strictly, so keep to the format below.
`~/Downloads/codync-export-<YYYY-MM-DD>.zip` so Codync never sees half a file.
7. **Report** the file's path, how many agents and group chats it holds, and what you left out. Tell the
- user to open Codync's **Settings → Import bots** and choose the file.
+ user to open Codync's **+ → Import bots…** and choose the file.
## Format
diff --git a/host/tests/fixtures/wire-shape.json b/host/tests/fixtures/wire-shape.json
index 6c94b98b..b6d58e1b 100644
--- a/host/tests/fixtures/wire-shape.json
+++ b/host/tests/fixtures/wire-shape.json
@@ -1,5 +1,5 @@
{
- "minApp": "2.21.0",
+ "minApp": "2.34.0",
"shapes": {
"event:bot": "object",
"event:bot.bot": "object",