Files
Tyler LongwellandDawn a752d0b1e5 Fix restore eager-spawn + startup race (F1/F2)
restore_managed_agents_on_launch spawned every auto-start pair with
lazy=false, booting an eager LLM child on every ordinary launch and
silently reintroducing N idle brains — the exact idle cost the pair
runtime is meant to avoid. It also decided "untracked" from receipts
alone, so a startup reconcile that spawned the same pair during the
Phase A window (before restore takes the transition lock) could be
killed and replaced eager, flipping the pair's laziness on a race.

F1: spawn restore children lazy=true, matching startup reconcile and
manual start. Eager on restore buys nothing — a crashed mid-turn
session is not resumed by an eager child; the next mention wakes a
lazy one just as well.

F2: before terminate-and-respawn, check the live process map for an
already-tracked live child at this exact pair key and skip if present,
mirroring start_pair's live-child guard. Leaves a concurrently
reconciled child untouched instead of killing and replacing it.

Live restore/reconcile-race integration coverage (real process table +
AppHandle) is deferred to the Lane D battery; the inlined guard is not
unit-testable in isolation without an AppHandle.

Co-authored-by: Dawn <c6237ef84fa537c78dcee78efd2d4e59f728859c7f194da42ac51ededfa0be05@sprout-oss.stage.blox.sqprod.co>
Co-authored-by: Tyler Longwell <tlongwell@block.xyz>
Signed-off-by: Tyler Longwell <tlongwell@block.xyz>
2026-07-19 12:49:10 -04:00
..
…

Buzz

Desktop chat shell with:

  • Tauri + React + TypeScript + Vite
  • Tailwind CSS
  • shadcn/ui-ready shared components
  • Biome (lint/format/check)
  • Feature-driven frontend structure

Scripts

  • pnpm dev - run the web frontend
  • pnpm tauri dev - run the desktop app
  • pnpm build - typecheck and build frontend
  • pnpm typecheck - TypeScript checks
  • pnpm lint - Biome lint
  • pnpm format - Biome format (write)
  • pnpm check - Biome check

Structure

  • src/shared - reusable app-wide code (ui, lib, styles)
  • src/features - feature modules (vertical slices)
  • src/app - top-level app composition