Commit Graph
4 Commits
Author SHA1 Message Date
Mao NakamotoandClaude Opus 4.7 60b828ac98 fix(desktop): v0.4.3 — afterPack wraps Electron binary with --no-sandbox stub
v0.4.2 set linux.executableArgs: ["--no-sandbox"] but verification on a
fresh AppImage download showed it STILL crashed at FATAL setuid_sandbox_host.
Inspected the generated AppRun script and confirmed the flag was missing:
electron-builder only injects executableArgs into the .desktop file's
Exec= line, not the AppRun. So OS-menu launches via .desktop worked but
direct execution of the AppImage (double-click, ./binary from a shell,
electron-updater swap) did not.

Fix: a custom afterPack hook (desktop/scripts/afterPack.cjs) wraps the
real Electron binary in a small shell stub that bakes --no-sandbox into
argv before exec'ing the real binary. The AppRun unknowingly invokes the
wrapper, which in turn invokes the real binary with the flag. This is
the pattern Slack, Discord, VSCode, Cursor, and Obsidian all use.

Layout in appOutDir after afterPack:
  fleet-runner      ← bash wrapper (new, 0755)
  fleet-runner-bin  ← real Electron binary (renamed from fleet-runner)

Idempotent: skips if -bin already exists, so multi-arch builds don't
double-wrap. Scoped to electronPlatformName === 'linux'.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-03 18:23:07 +02:00
Mao NakamotoandClaude Opus 4.7 cfc5d7eb2d fix(desktop): bump icon.png to 1024x1024 for macOS build
electron-builder's macOS target requires icon.png ≥ 512x512; the procedural
generator was emitting 256x256, blocking the macos-latest job in the v0.2.0
release with:

  ⨯ image desktop/resources/icon.png must be at least 512x512

Bumped to 1024x1024 (retina-ready) — well above the minimum and macOS's
iconset generation downscales automatically. Linux/Windows already accepted
256 so this is purely additive there.

Unblocks the macOS build leg of the fleet-runner-v0.2.0 release.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-03 14:35:55 +02:00
Mao NakamotoandClaude Opus 4.7 7b26b90bf7 feat(install): one-touch Fleet Runner install — bundled Zellij, deep-link auth, copy button
Collapses the new-customer install path from "download → install Zellij →
install agent CLI → copy token → paste in app" into "download → click
Open in Fleet Runner". Bumps Fleet Runner to v0.2.0.

Desktop (Fleet Runner v0.2.0)
- desktop/scripts/download-zellij.mjs (new): prebuild fetches the pinned
  Zellij binary (v0.41.2) into desktop/resources/bin/ for the target
  platform; electron-builder packs it into the AppImage / .deb / .dmg.
  Idempotent — skips if the file is already present; FORCE=1 re-downloads.
  Handles linux-x64/arm64, darwin-x64/arm64; PRs add more.
- desktop/src/main/index.ts: bundledBinDir() prepends the bundled binary
  dir to process.env.PATH before any home/ or zellij call resolves, so
  every existing exec("zellij ...") picks the bundled binary first with
  the user's $PATH as fallback. Zero call-site changes.
- desktop/src/main/index.ts: fleetcrown:// protocol handler (single-
  instance lock, mac open-url event, Linux/Win argv scan, cold-start
  buffering). On a deep-link click, the token in ?token=ck_... is saved
  via the same path as manual paste and the poller restarts immediately.
- desktop/package.json: version 0.1.0 → 0.2.0; prebuild now also runs
  bundle:zellij so dist:linux/mac/win all ship the binary.

Web
- src/components/settings/AgentTokenSettings.tsx: "Open in Fleet Runner"
  button next to the freshly-revealed token, hrefed to
  fleetcrown://auth?token=<token>. Falls back gracefully if Fleet Runner
  isn't installed or the protocol isn't registered.
- src/components/public/DesktopDownload.tsx: CopyableCommand wraps the
  CLI command shown after download with a Copy button (Check icon for
  2s on success). Clipboard API failures are silent — the code stays
  selectable.
- src/app/globals.css: ui-public-download-command-row + -copy classes
  to keep the SoC of the public-download surface intact.
- src/config/marketing-content.ts: install copy rewritten around the
  new one-touch story (Linux command uses ~/Downloads/Fleet.Runner-*
  wildcard; Claude Code becomes required since shipped agents don't ship
  with a bundled CLI; prerequisites prose tightened).

.gitignore: excludes desktop/resources/bin/ — the binary is fetched at
build time, not source-controlled (10MB+ per platform).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-03 13:14:15 +02:00
Georgy ButaevandClaude Opus 4.7 8fc676c488 feat(desktop): OS notifications on worker.idle + real tray/window icon
Embedded watcher gains an optional onIdle subscriber; the desktop main
process passes a callback that fires an OS notification (with a health
badge prefix and the handoff "done" line) every time a dispatched agent
writes its handoff. Clicking the notification surfaces the main window.
This closes the fire-and-walk-away loop: dispatch an intent, switch
context, get pinged when it lands.

Tray + window icon: replaces the placeholder nativeImage.createEmpty()
with the FleetCrown control-window mark, pre-rendered to PNG by a small
pure-Node generator (scripts/generate-tray-icon.mjs — wired into
prebuild + dev). 22px tray, 44px @2x, 256px window/builder icon. Icons
checked in under desktop/resources/ with a targeted gitignore exception
so packaged binaries pick them up without a build step. electron-builder
config gains buildResources + extraResources so the PNGs ship with
AppImage / deb / dmg / nsis.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-02 17:04:14 +02:00