Files
buzz/desktop
Duncan d63ed1e3b9 fix(agents): address effort settlement, pin→inherit suppression, and runtime-switch reset
IMPORTANT-1: Add effortLevel comparison to observedStateMatchesAgentInput
(agentSaveCoordinator.ts) with tri-state semantics — absent submission skips,
null clears, string compares against observed column. ManagedAgent now exposes
effortLevel from ManagedAgentSummary (Rust types.rs + runtime.rs) so the
comparator can detect a backend-rejected effort write rather than closing as
success. Regressions: 4 family-14 coordinator tests; mutation (remove compare)
turns the 2 rejected-edit tests RED while the 2 settled tests stay GREEN.

IMPORTANT-2: Replace raw effortLevel include in useAgentEditMergedSubmit with
resolveEffortSubmission — suppresses effort on pin→inherit (agentCommand:"")
and on unchanged selections, matching the deleted AgentInstanceEditDialog's
PR #4625 semantics exactly. originalEffortLevel threaded from
configSurfaceQuery into AgentEditSubmitState.

IMPORTANT-3: Add setEffortLevel and effortTouched to RuntimeHandlersInput;
call setEffortLevel(null) and effortTouched.current = false in
handleRuntimeDropdownChange (useAgentEditRuntimeHandlers.ts) so runtime
switches do not carry stale vocabulary values into the next Save. Port the
6 load-bearing mounted production-seam tests from the deleted
agentInstanceEditCancelSafety.test.mjs to agentEditMergedCancelSafety.test.mjs
against AgentEditMergedDialog: selection+Cancel zero writes, ordinary Save
carries effortLevel, rejected Save stays open, pin→inherit suppresses effort,
access+effort atomic. Runtime-switch reset covered by hook-level test in
agentEditMergedRuntimeReset.test.mjs.

Co-authored-by: Will Pfleger <pfleger.will@gmail.com>
Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
2026-09-02 21:05:58 -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