main is RED and the merge queue is stopped. Not from a code defect — from a release gate doing exactly its job. Dependabot's @types/node bump (#411) edits desktop/package-lock.json, which determines what gets BUILT into the runner. Nothing bumped desktop's version alongside it, so desktop-release-drift correctly reports "1 file changed since fleet-runner-v0.8.16, version still 0.8.16" — a change that would live on the server and on no machine at all. That is the failure the gate was written for, after six commits went missing at v0.8.12. Because the sweep only merges onto a green base, this blocked every open PR, none of which had anything to do with it. Worth naming the shape, because it will recur: a dependency bot can trip a release gate, and its PR can never carry the bump itself — the bot does not know the repo ships a desktop binary. So the bump always lands afterwards, from a human or an agent, and until it does the whole queue is stuck behind a red main. Nothing here changes behaviour; the release exists so the lockfile ships. pnpm run verify passes. Claude-Session: https://claude.ai/code/session_01UvjGNAS9CMfEGNW26tUR4P Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com> Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Fleet Runner Desktop (for FleetCrown)
This is the native desktop application — the primary local runtime for FleetCrown (the "local fleet runner").
See docs/desktop-app.md (at repo root) for the full plan, stack decision, architecture, and prioritized execution steps.
Current status
- Packaged native app (AppImage + .deb produced via electron-builder; macOS/Windows builds wire up via
.github/workflows/desktop-release.yml). - Ships in web-shell mode by default: the main window loads
https://fleetcrown.orangecat.chdirectly and the user gets the exact same React tree the browser serves, plus native bits (tray, OS notifications on agent idle, persistent NextAuth cookies). One UI, two surfaces. - Native IPC remains available via the preload-injected
window.fleetRunnerbridge — the web app can detect Fleet Runner via theFleetRunner/<version>UA suffix and call into the local runtime where it makes sense. - Real
home/stack integration in the main process: loads your projects config from agent-projects.conf, usesdecide(), renders actual prompts via the orchestration layer (renderTaskForAdapter) on every dispatch. - Dispatch uses the canonical
injectIntoTab(same code path as the daemon/worker): go-to-tab + focus poll guard (prevents typing into wrong pane) + write-chars + Enter + best-effort restore of previous tab. - The embedded
home/watcherreacts to~/.fleetcrown/sessions/*.mdchanges and fires a native OS notification on everyworker.idleevent — fire-and-walk-away UX.
Overriding the shell URL
# Point the desktop at the hosted production app (default)
FLEETCROWN_WEB_URL=https://fleetcrown.orangecat.ch ./Fleet Runner-0.1.0.AppImage
# Or against a local dev server
FLEETCROWN_WEB_URL=http://localhost:3000 ./Fleet Runner-0.1.0.AppImage
# Disable web-shell entirely and load the bundled renderer (IPC dev surface)
FLEETCROWN_WEB_URL=local npm run dev
Known gaps (prototype phase — desktop-2/3 largely complete for dispatch+idle):
- Dispatch uses real
appendEvent(bridge.dispatch + worker.started/crashed + runId + sentinel). - The main process now embeds the home/ watcher (startWatcher): fs.watch on ~/.fleetcrown/sessions/*.md for registered projects, debounced emit of
worker.idlewith parsed handoff. Desktop-originated runs now produce the full dispatch → started → idle (on handoff) → finished (stop hook) chain in the shared log without a separate watcher process. - Local UI snapshot still uses an in-process projection; a future slice can tail the log inside the app for a complete local Brain view.
- See
docs/desktop-app.mdfor status. Co-running the standalone home/ trio is still supported for headless/transition use.
Get the runnable app
End users should grab a signed installer from the download page. For a local build from source:
git clone https://github.com/bitbaum/fleetcrown.git
cd fleetcrown/desktop
npm install
npm run dist:linux # or dist:mac / dist:win on those platforms
Then run:
chmod +x dist/Fleet\ Runner-0.1.0.AppImage
./dist/Fleet\ Runner-0.1.0.AppImage
(Or install the .deb / .dmg / .exe.)
On launch, the app loads the FleetCrown control plane directly. Sign in with the same account you use on the web; native APIs are injected via window.fleetRunner, and the embedded watcher fires native notifications when local agents go idle.
Dev (for contributors)
cd desktop
npm install
npm run dev
Packaging
npm run dist # current platform
npm run dist:linux # AppImage + deb
# etc.
Cutting a release
.github/workflows/desktop-release.yml builds Fleet Runner for macOS, Windows,
and Linux from one tag push and uploads the signed installers to a GitHub
Release. To cut a release:
cd desktop
npm version patch # or minor/major — bumps package.json + creates a commit
git tag fleet-runner-v$(node -p "require('./package.json').version")
git push --follow-tags
The workflow takes ~10 minutes. Once it's green, the binaries are at:
https://github.com/bitbaum/fleetcrown/releases/latest/download/Fleet-Runner-linux-x86_64.AppImagehttps://github.com/bitbaum/fleetcrown/releases/latest/download/Fleet-Runner-linux-amd64.debhttps://github.com/bitbaum/fleetcrown/releases/latest/download/Fleet-Runner-mac-x64.dmghttps://github.com/bitbaum/fleetcrown/releases/latest/download/Fleet-Runner-mac-arm64.dmghttps://github.com/bitbaum/fleetcrown/releases/latest/download/Fleet-Runner-win-x64.exe
To test the workflow without minting a real release, dispatch it manually from
the Actions tab with dry_run: true — it builds on all three runners but
skips the publish step.
After the first release, update src/config/marketing-content.ts to point the
download page's Linux URLs at the /releases/latest/download/ permalinks and
flip the macOS/Windows platforms from comingSoon to ready.
The old daemon remains supported for transition / headless use. This desktop app is the future default.
See the root content/thoughts/the-local-fleet-runner-and-remote-control-plane-architecture.md and docs/desktop-app.md for the full vision and plan.
Relation to existing code
- Builds on the
home/stack (the best current local logic). - The old daemon (
cockpit-daemon.sh,home-start.sh) remains fully supported during transition. - Long-term: this becomes the default install path.
See the root content/thoughts/the-local-fleet-runner-and-remote-control-plane-architecture.md for the strategic "why".