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): start dev sandboxes past onboarding
leepokai40e6ffbbcd9f
diff --git a/apps/desktop/src/main/index.ts b/apps/desktop/src/main/index.tsindex b14f93b9..ded3afcd 100644--- a/apps/desktop/src/main/index.ts+++ b/apps/desktop/src/main/index.ts@@ -156,6 +156,7 @@ function registerIPC(tray: Tray) {ipcMain.on('app:version', (e) => (e.returnValue = app.getVersion()))ipcMain.on('app:computerName', (e) => (e.returnValue = computerName()))ipcMain.on('app:openedAtLogin', (e) => (e.returnValue = openedAtLogin()))+ ipcMain.on('app:devSkipOnboarding', (e) => (e.returnValue = !app.isPackaged && identity.environment === 'dev' && process.env.CODYNC_DEV_SKIP_ONBOARDING === '1'))ipcMain.on('app:debugOpen', (e) => (e.returnValue = app.isPackaged ? null : (process.env.CODYNC_DEBUG_OPEN ?? null)))ipcMain.handle('host:snapshot', () => snapshot())ipcMain.on('host:install', () => void host.install())diff --git a/apps/desktop/src/preload/index.ts b/apps/desktop/src/preload/index.tsindex d9506b68..1e798524 100644--- a/apps/desktop/src/preload/index.ts+++ b/apps/desktop/src/preload/index.ts@@ -18,6 +18,14 @@ function listen<T>(channel: string, cb: (value: T) => void) {return () => void ipcRenderer.removeListener(channel, handler)}+// A dev sandbox can start past onboarding (tools/dev.mjs); only a window that never chose is seeded.+if (ipcRenderer.sendSync('app:devSkipOnboarding') as boolean) {+ try {+ if (localStorage.getItem('macAccountOnboardingCompleted') === null) localStorage.setItem('macAccountOnboardingCompleted', 'true')+ if (localStorage.getItem('computerAccessSetup') === null) localStorage.setItem('computerAccessSetup', '"later"')+ } catch {}+}+const bridge: CodyncBridge = {platform: process.platform as CodyncBridge['platform'],appName: ipcRenderer.sendSync('app:name') as string,diff --git a/apps/desktop/tools/dev.mjs b/apps/desktop/tools/dev.mjsindex 9b3b092f..4755eba1 100644--- a/apps/desktop/tools/dev.mjs+++ b/apps/desktop/tools/dev.mjs@@ -4,8 +4,8 @@// this run builds, starts and stops. Flags (`npm run dev -- --list`): --shared takes the default// Codync Dev from a worktree, --sandbox runs a sandbox from the main checkout, --name <name> runs// the sandbox of that name, --cloud lets the sandbox host use the dev cloud, --cdp opens the-// DevTools protocol on the sandbox port + 10000, --list shows every sandbox, --prune deletes the-// ones whose worktree is gone.+// DevTools protocol on the sandbox port + 10000, --onboarding shows the welcome flow (a sandbox+// starts past it), --list shows every sandbox, --prune deletes the ones whose worktree is gone.import { spawn, spawnSync } from 'node:child_process'import { existsSync, mkdirSync, openSync, readdirSync, readFileSync, rmSync, statSync, writeFileSync } from 'node:fs'import { createServer } from 'node:net'@@ -22,7 +22,7 @@ const windows = process.platform === 'win32'const { values: flags } = parseArgs({options: {shared: { type: 'boolean' }, sandbox: { type: 'boolean' }, name: { type: 'string' },- cloud: { type: 'boolean' }, cdp: { type: 'boolean' }, list: { type: 'boolean' }, prune: { type: 'boolean' },+ cloud: { type: 'boolean' }, onboarding: { type: 'boolean' }, cdp: { type: 'boolean' }, list: { type: 'boolean' }, prune: { type: 'boolean' },},})@@ -147,7 +147,11 @@ async function sandbox() {console.log(` terminal UI ${command} tui --port ${port}`)if (cdp) console.log(` DevTools protocol 127.0.0.1:${cdp}`)console.log('')- const appEnv = { ...process.env, CODYNC_HOME: home, CODYNC_PORT: String(port), ...(cdp ? { CODYNC_REMOTE_DEBUG: String(cdp) } : {}) }+ const appEnv = {+ ...process.env, CODYNC_HOME: home, CODYNC_PORT: String(port),+ ...(cdp ? { CODYNC_REMOTE_DEBUG: String(cdp) } : {}),+ ...(flags.onboarding ? {} : { CODYNC_DEV_SKIP_ONBOARDING: '1' }),+ }app = startApp(appEnv)app.child.on('exit', (code) => stop(code ?? 0))app.child.on('error', (e) => {diff --git a/docs/guides/dev-app.md b/docs/guides/dev-app.mdindex b158735f..7f99b28d 100644--- a/docs/guides/dev-app.md+++ b/docs/guides/dev-app.md@@ -30,6 +30,8 @@ Xcode configurations separate environment from optimization: `Debug` and `ReleasFlags go after `npm run dev --`: `--shared` takes the default Codync Dev from a worktree (quit the main checkout's first); `--sandbox` runs a sandbox from the main checkout, for a second session on `dev`; `--name <name>` runs the sandbox of that name, for another copy of the same checkout; `--cloud` lets the sandbox host use the dev cloud (each sandbox then shows as another computer); `--cdp` opens the DevTools protocol on the sandbox port + 10000; `--list` shows every sandbox; `--prune` deletes the ones whose worktree is gone, so run it after removing worktrees.+A sandbox starts past onboarding (welcome and computer-access setup, only where the window hasn't chosen yet); `--onboarding` brings the flow back. It still starts signed out: it never borrows Codync Dev's login.+Still shared: macOS sees every unpackaged run as the same Electron app, so permissions and notifications are shared and a `codync-dev://` sign-in callback may reach another copy (test sign-in on the default Codync Dev); Codync Screen and computer use need the packaged `Codync Dev.app`; a global shortcut (the approval island's) goes to whichever app registered it first.## Resource ownership