Deux défauts d'usage de la zone centrale de l'IDE. 1. Ouvrir un fichier affichait une page vide. Le conteneur de l'unique instance Monaco vivait sous le `v-if="activeTab"` : monté sans onglet actif (premier usage, ou après avoir tout fermé), `onMounted` sortait en silence sur `!host.value`, `ready` restait faux pour toujours, et les deux watchers d'affichage étaient gardés par lui. Le conteneur est désormais toujours monté (v-show, jamais v-if : sous un v-if, fermer le dernier onglet détruisait le DOM et l'éditeur gardait une référence sur un noeud détaché) et l'éditeur est créé paresseusement depuis `showTab`, devenu l'unique entonnoir d'affichage. `useMonaco` ne mémoïse plus un échec, l'attente et l'erreur sont visibles, et la relecture disque ne se tait plus. Sur mobile, ouvrir un fichier amène enfin la zone centrale au premier plan et la valeur morte `mobilePanel = 'sidebar'` disparaît (migrée). Trouvé par l'E2E : seul l'`editor.worker` était fourni, donc ouvrir un `.ts` lançait le service TypeScript contre un worker qui n'en connaissait pas les méthodes, et jetait un rejet non géré à chaque ouverture. Les workers de langage sont fournis (chunks à la demande), diagnostics sémantiques coupés (sans tsconfig ni node_modules, ils inventeraient des erreurs). 2. Le statut git était à l'étroit et mono-projet. La zone centrale porte un mode « Fichiers / Changements » (bascule à icônes dans la barre d'onglets, donc accessible même sans onglet ouvert). La vue Changements montre un bloc par worktree pour TOUS les projets ouverts : fichiers indexés et non indexés, diff déplié sur place, commit, push, fetch, pull et historique par bloc. Le panneau Git de la barre latérale devient l'index (compteurs déjà diffusés par WS, donc zéro requête) et le badge de la barre d'activité, codé à 0, compte enfin les worktrees à traiter. Au passage : `canPush` était faux dans les deux sens (actif sans rien à pousser, bloqué en étant seulement en retard), l'amend d'un message seul est accepté comme le serveur le permettait déjà, le rebase est proposé dès qu'on est en retard, une confirmation d'abandon ne survit plus au rechargement de la liste, et `commit`/`fetch`/`push` émettent enfin `worktree_changes` (le compteur « n non poussés » restait périmé juste après un push). Vérifié : 528 tests, acceptations P7/P9/P14/P15, `verify-ui` (4 captures nouvelles) et un `verify-editor` qui prouve par clics réels l'ouverture d'un fichier sans onglet persisté, la fermeture/réouverture, la bascule mobile et le chunk éditeur absent. Ce dernier échoue bien si l'on remet le conteneur sous un v-if.
Arboretum Desktop
Native desktop shell (Electron) for Arboretum. It runs the existing daemon as a child process and shows its web UI in a window, already authenticated (no login screen). The heavy lifting stays in the daemon; this package is a thin shell (window lifecycle, daemon supervision, auto auth).
This package is intentionally outside the root npm workspaces so the daemon CI stays light. It
has its own package-lock.json and is built on a developer machine (or a dedicated CI runner),
not by the main npm run build.
How it works
- The shell picks a data directory under the OS user-data path and spawns the bundled Node runtime
running the packaged daemon (
build/server/package/dist/index.js) withARBORETUM_EMIT_TOKEN_FD=3. - The daemon mints a fresh token and writes
{token, url}on file descriptor 3 (private stdio pipe). - The shell posts that token to
/api/v1/auth/loginfrom the window's session (server to server), which drops thearb_sessioncookie into the session jar, then loads the SPA on127.0.0.1. - On quit, the daemon child is asked to stop (
SIGTERMon POSIX,taskkill /Ton Windows, which Windows requires to take the whole process tree down rather than leaving PTY grandchildren behind).
A standalone Node runtime (pinned, >= 22.16) is bundled instead of reusing Electron's Node, so
node:sqlite works without a flag and the node-pty prebuild keeps the node. ABI prefix.
Prerequisites (all platforms)
- Node >= 22.16 to build.
giton PATH at runtime (worktree operations).claudeis discovered on PATH or via the in-app Claude CLI setting; it is not bundled.
Develop
cd packages/desktop
npm install # ELECTRON_SKIP_BINARY_DOWNLOAD=1 to skip the Electron binary if you only typecheck
npm run dev # bundles main/preload, then `electron .` against the repo's built daemon
npm run dev runs the daemon from the repo (packages/server/dist, so run npm run build at the
repo root first) using the system node.
Build installers
Each command builds the shell, prepares the daemon (npm pack + runtime deps with the right
node-pty prebuild) and a standalone Node runtime, then runs electron-builder.
npm run dist:linux # AppImage + .deb (on Linux)
npm run dist:win # NSIS + portable (on Windows)
npm run dist:mac # dmg + zip (on macOS)
Artifacts land in packages/desktop/release/.
Linux
Fully supported. dist:linux runs on a Linux host or the Gitea CI runner.
Windows
Must be built on a Windows host. Cross-building from Linux (including via Wine) does not work, and the option has been removed from this document to stop people losing time on it:
node-pty'scheck-prebuild.jsexits successfully as soon as the host binary exists, soprebuild-installnever runs and no win32 binary is fetched (its published tarball only shipsprebuilds/linux-*);- its
post-install.jscopiesconpty.dllandOpenConsole.exeonly when the build platform is win32. Without them there is no ConPTY, hence no terminal at all.
In CI this is a dedicated job on a windows-latest runner, enabled by the ENABLE_WINDOWS_BUILD
repository variable. Full procedure to register such a runner: docs/CI_RUNNERS.md.
The app requires Windows 10 1809+ (ConPTY). The installer is not code-signed, so SmartScreen shows "unknown publisher": choose "More info" then "Run anyway".
macOS (best-effort)
Build on a Mac (dmg/zip cannot be produced elsewhere); there is no macOS runner, so it is a manual
step. The app is not signed or notarized, so Gatekeeper blocks the first launch: right-click the app
then "Open", or run xattr -dr com.apple.quarantine /Applications/Arboretum.app.
What the shell adds beyond the window
- Tray icon (
src/main/tray.ts): open the window, toggle launch-at-login, quit. On macOS it uses a monochrome template image so it follows the menu-bar theme. - Application menu (
src/main/app-menu.ts): required on macOS, where without it ⌘C / ⌘V / ⌘A are not bound anywhere in the app. Closing the window hides it;app.on('activate')brings it back from the Dock. - Launch at login (
src/main/autostart.ts): a.desktopfile under~/.config/autostarton Linux,app.setLoginItemSettingson Windows/macOS. - Auto-update (
src/main/updater.ts): see below. - PATH enrichment (
src/main/env.ts): a GUI app starts with a minimal PATH. On POSIX we add/usr/local/bin,/opt/homebrew/bin,~/.local/bin; on Windows%LOCALAPPDATA%\Programsand%APPDATA%\npm, where the Claude CLI and global npm binaries actually live.
Auto-update
electron-builder emits latest*.yml next to the artifacts and electron-updater reads them from a
floating desktop-latest release on Gitea, which the release workflow recreates on every version
(that URL is baked into shipped binaries, so it must always exist). Auto-update covers Windows (NSIS)
and Linux (AppImage); macOS updates are manual while the app is unsigned.
Bundled Node runtime
scripts/fetch-node.mjs downloads a pinned Node (SHA256 verified) and prunes it to the binary and
its licence: headers, docs and npm/corepack are removed, since the daemon's dependencies are
installed at build time, never at runtime. That takes the embedded runtime from ~205 MB to ~118 MB.
Icons
Generated by python3 brand/build-assets.py from the source logo, into resources/:
icons/{16,24,32,48,64,128,256,512}x*.png: the Linux set, at standard hicolor sizes. This is not cosmetic: with a single non-standard size (the old 895×895), the directory is not declared inhicolor/index.themeand the freedesktop spec makes desktops ignore it, so the launcher showed no icon at all.icon.png(1024) : macOS source and generic fallback.icon.ico: Windows (NSIS installer and window).trayTemplate.png(+@2x) : monochrome macOS menu-bar icon.