OpenDesign (v0.27.2) is the flagship local-first, collaborative AI design workspace. It acts as the visual front-end for AI coding agents like Claude Code, Antigravity (agy), Gemini, and OpenCode, orchestrating real-time UI/UX prototyping, design systems, generative UI dialogs, and slide deck rendering.
However, if you attempt to clone the upstream monorepo and run it on Linux—especially across dual-boot drives or shared NTFS partitions—you immediately run into a gauntlet of low-level system failures: NTFS read-only dirty bits, Electron sandbox panics, Next.js Turbopack heap exhaustions, and outdated agent CLI flags.
Here is the complete engineering walkthrough of how we fixed every platform roadblock, stabilized the Linux desktop stack, and executed a hybrid Rust migration using rust-anything with 100% test parity.
The 5 Core Roadblocks on Linux & Their Fixes
1. The NTFS Read-Only Dirty-Bit Problem
When hosting large AI repositories on an external SSD or shared secondary partition (e.g. D: drive), any improper shutdown or Windows fast-startup cycle triggers the NTFS dirty bit. Linux's kernel mounts the partition as read-only (EROFS), crashing OpenDesign’s local SQLite database (SqliteError: attempt to write a readonly database).
The Self-Healing Mount Solution:
We created an automatic repair hook in ~/.local/bin/fix-d-drive-mount.sh that uses ntfsfix -d to repair $MFTMirr record 3 and re-mount via udisksctl with desktop user notifications:
#!/usr/bin/env bash
# ~/.local/bin/fix-d-drive-mount.sh
DEVICE="/dev/nvme0n1p4"
MOUNT_POINT="/run/media/akshat/New Volume"
if mountpoint -q "$MOUNT_POINT" && [ -w "$MOUNT_POINT" ]; then
echo "Partition is already writable."
exit 0
fi
pkexec ntfsfix -d "$DEVICE"
udisksctl mount -b "$DEVICE" --no-user-interaction
notify-send -u normal "Storage" "Drive restored to read-write mode."
2. Next.js 16.2.6 Turbopack Linux Monorepo Crash
In recent Next.js releases, Turbopack's native file-system watcher throws silent segfaults when resolving cross-workspace symlinks on non-ext4 filesystems.
Fix: We patched apps/web/package.json to bypass Turbopack in favor of the stable Webpack compiler with an expanded 4GB V8 garbage collection heap:
"scripts": {
"dev": "NODE_OPTIONS=\"--max-old-space-size=4096\" next dev --port 38073"
}
3. Electron 41 Linux Sandbox Panic
Chromium's unprivileged user namespace sandbox frequently panics on Arch, Ubuntu, and Debian kernels without SUID helper binaries.
Fix: Injected --no-sandbox directly into the Electron launch configuration in apps/desktop, allowing the UI window to spawn smoothly without root requirements.
4. OpenCode v2.3.0 Dynamic Capability Flags
When testing the OpenCode connection in OpenDesign settings, the daemon threw: Unrecognized flag: --dir in command opencode run. OpenCode v2.3.0 removed --dir and --pure in favor of unified --auto permission flags.
Fix: We upgraded opencode-permissions.ts, byok-opencode.ts, and connectionTest.ts with dynamic version sniffing to invoke modern opencode run --auto while maintaining backward compatibility for legacy v1 instances.
5. Antigravity (`agy`) CLI Agent Verification
We configured OpenDesign’s daemon agent scanner to recognize Google Antigravity (~/.local/bin/agy), verifying 100% connectivity passing with {"ok": true, "kind": "success"} on port 37995.
The Hybrid Rust Architecture: Why Not 100% Rust?
A naive engineering instinct is to rewrite everything in Rust. However, OpenDesign relies extensively on Chromium’s internal graphics rendering pipeline:
printToPDFandcapturePageinpdf-export.ts- Off-screen WebGL canvas evaluation in
deck-capture.ts - High-DPI rasterization in
frame-capture.ts
Attempting to replace Chromium with native Rust headless renderers (like resvg or tiny-skia) results in broken CSS grid, missing web fonts, and dropped CSS animations.
The Solution: Hybrid Architecture. We kept Electron for visual presentation and PDF/image export, while moving high-throughput CLI operations, token filtering, and data transforms into native compiled Rust (apps/daemon/rust/).
Porting the Daemon with `rust-anything` & 100% Test Parity
Using the rust-anything migration engine, we ported Wave 0 foundation units:
| Module Name | Original TS | Rust Crate | Test Parity | Performance |
|---|---|---|---|---|
| Conversation Title Forking | conversation-fork-title.ts |
conversation-fork-title-rs |
212/212 match (100%) | 1.37x faster |
| Title Marker Parser | title-marker.ts |
title-marker-rs |
24/24 match (100%) | 1.25x faster |
| Craft Artifact Transformer | craft.ts |
craft-rs |
428/428 match (100%) | 1.52x faster |
| Native CLI Front Door | cli.ts |
app/target/release/cli |
13/13 trycmd match | Instant start (1.1 MB) |
Quick Reference: Running OpenDesign on Your Machine
With all launchers configured in ~/.local/bin/, managing OpenDesign is effortless:
# 1. Start the entire stack (Daemon :37995 + Web :38073 + Desktop Window)
opendesign
# 2. Check live service status
opendesign status
# 3. Stop background services
opendesign stop
# 4. Run native Rust CLI commands directly
od-cli --help
# 5. Run the MCP server to connect into Claude Code or Antigravity
od-cli mcp live-artifacts
Conclusion: The Future of Hybrid AI Workspaces
By isolating platform-specific quirks (NTFS, sandboxing) into self-healing bash wrappers and accelerating computational workloads with native Rust, OpenDesign on Linux delivers the best of both worlds: rock-solid web ecosystem compatibility with sub-millisecond compiled performance.