Repository navigation
Native Rust (GPUI) BoxBox desktop client with Electrobun feature parity and benchmarks - #226
usehoplite[bot] wants to merge 17 commits into
Conversation
Co-authored-by: Radhey Kalra <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
…rrors in GPUI experiment Co-authored-by: Radhey Kalra <[email protected]>
|
Addressed all four review threads in 3b324d5:
Checks: |
Co-authored-by: Radhey Kalra <[email protected]>
Co-authored-by: Radhey Kalra <[email protected]>
…properties with undo Co-authored-by: Radhey Kalra <[email protected]>
…round jobs over SSE Co-authored-by: Radhey Kalra <[email protected]>
… app), terminal, favorites, shared preferences Co-authored-by: Radhey Kalra <[email protected]>
…sktop watch stream Co-authored-by: Radhey Kalra <[email protected]>
Co-authored-by: Radhey Kalra <[email protected]>
Co-authored-by: Radhey Kalra <[email protected]>
…file drops copy Co-authored-by: Radhey Kalra <[email protected]>
… newest first, natural ties) Co-authored-by: Radhey Kalra <[email protected]>
…ext/code, PDF first page, open natively) Co-authored-by: Radhey Kalra <[email protected]>
…n bar; fix default sort Co-authored-by: Radhey Kalra <[email protected]>
…g window Co-authored-by: Radhey Kalra <[email protected]>
…unch paths Co-authored-by: Radhey Kalra <[email protected]>
… screenshots Co-authored-by: Radhey Kalra <[email protected]>
Dialogs, the location bar and search each had hand-rolled key handling with no IME, no mouse selection and no word movement. They now use TextField, the input from PR #226 (GPUI's input example) scrolled to keep the caret in view, inside the shared Input frame. Rename selects the name without its extension. The file menu follows fileContextMenu.ts on ContextMenu, with icons and shortcuts. The toolbar's + opens the add menu; local folders say "Copy files here…". Name, properties and preview dialogs use Modal. Text previews are read-only, as editing belongs to the file's own app, so the save path is gone. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Every launch opened another window. The first window now owns a private Unix socket (from PR #226's instance.rs); a later launch hands it its argument and exits, and the window opens it in a new tab and raises itself. The socket is per user and per provider setting, so a server or test window never takes local launches. Launch arguments may be virtual paths, real paths or file:// URIs; a file opens its folder. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Superseded by #248, which builds the native GPUI file manager out of this experiment and makes it the desktop app. |
Problem
The BoxBox desktop app runs the shared Svelte UI inside Electrobun/CEF: an 11-process Chromium stack, a 196 MiB AppImage, and more than half a gigabyte of memory for one window. This PR builds a native Rust client with GPUI that offers the Electrobun app's features, including what PR #211 adds to Open With and sorting. It also measures both apps side by side. The client lives in
experiments/gpui-desktop/and does not replacedesktop/.Solution
The client drives the same Go server the Electrobun app bundles, over the same
/api/v1and/api/v1/desktopendpoints:boxbox --desktopserver with a random token, the desktop mounts and loopback readiness, and authenticates with theboxbox_desktopcookie. The server stops with the last window. Single instance: a later launch opens its path as a tab in the running window./desktop/apps/icon,/desktop/apps/default). The default sort becomes folders first, then newest modified, then natural names./desktop/preferencesfile as the Electrobun app, keeping keys this client doesn't use. F1 shows the shortcuts.Not ported yet, as listed in the README:
Performance (
BENCHMARKS.md)Both apps ran the same Go server binary from the v0.3.2 AppImage, were launched straight into a 10,050-entry folder, and were measured three times on a 2-vCPU sandbox with Xvfb and software rendering. The values are medians.
Scroll CPU came out about the same, because both apps rasterize on the CPU in this sandbox. That row needs a rerun on real GPU hardware.
Verification
cargo test: 35 passed.cargo clippy --all-targetsis clean for this crate andcargo fmt --checkpasses. The repository CI does not build this crate, so these ran locally.text/plain=gedit.desktoptomimeapps.listpreferences.json/etc