Files
buzz/desktop/src-tauri/src
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
..
…
…
…