84b71e0a016acc71cf12e375a2b151ee20bc11b3
- Validate cwd is non-empty in shell:open-in-editor IPC handler - Check shell.openPath() return value and throw on error - Attach spawn error listener to prevent crashes from missing CLI - Validate localStorage lastEditor against known EDITORS list - Only call preventDefault() for Cmd+O when action will run Co-authored-by: Julius Marminge <[email protected]>
CodeThing (Electron + Vite + Bun)
CodeThing is a desktop shell for coding agents. This first implementation is:
- Codex-first: connects to
codex app-serverand streams turn/item events. - Provider-ready: renderer speaks a provider abstraction so Claude Code can plug in later.
- Typed end-to-end: contracts validate payloads at preload/main boundaries.
Workspace layout
/apps/desktop: Electron main + preload process, includes provider and Codex session managers./apps/renderer: React + Vite UI for session control, conversation, and protocol event stream./packages/contracts: shared Zod schemas + TypeScript types for IPC and provider events.
Codex prerequisites
- Install Codex CLI so
codexis on your PATH. - Authenticate Codex before running CodeThing (for example via API key or ChatGPT auth supported by Codex).
- CodeThing starts the server via
codex app-serverper session.
Security and boundary model
nodeIntegration: falsecontextIsolation: truesandbox: true- Renderer talks only to
window.nativeApiexposed by preload. - Preload and main both validate inputs using shared Zod schemas.
Scripts
bun run dev: starts contract build/watch, renderer dev server, and Electron process.bun run build: builds contracts, renderer, and desktop bundles through Turbo.bun run typecheck: strict TypeScript checks for all packages.bun run test: runs workspace tests.
CI quality gates
.github/workflows/ci.ymlrunsbun run lint,bun run typecheck, andbun run teston pull requests and pushes tomain.
Optional:
ELECTRON_RENDERER_PORT=5180 bun run devif5173is already in use.
Provider architecture
The renderer now depends on nativeApi.providers.*:
startSessionsendTurninterruptTurnstopSessionlistSessionsonEvent
Codex is the only implemented provider right now. claudeCode is reserved in contracts/UI but returns a not-implemented error in main-process dispatch.
Releases
7
Android APK · build 49
Latest
Languages
TypeScript
95.5%
MDX
2.1%
JavaScript
0.7%
Astro
0.3%
CSS
0.3%
Other
0.9%