buzz icon indicating copy to clipboard operation
buzz copied to clipboard

Buzz Edit Agent — custom harness/runtime selection does not persist

Open fgdghooperator opened this issue 1 month ago • 1 comments

Owner/lane: Jimmy / Wiring / Buzz

Proven defect

For managed agents in the repaired-state edge case where the authoritative record has runtime = codex, agent_command = hermes, and agent_command_override = null, Edit Agent displays and can select the custom Hermes Profile ACP runtime, but the selection does not create a valid persistable dirty state. Save changes remains disabled/inert and the authoritative runtime remains/reverts to codex.

Observed on Tweak / CRED, Pip / OSRE, and Kenny / REMH.

This is not relay, DNS, Tailscale, OAuth, provider/model, channel membership, or a human client issue. The product-layer defect is in Edit Agent harness/runtime persistence.

Expected behavior

Selecting a different harness/runtime must persist the actual runtime/harness selection even when the resolved command string happens to match the existing agent_command field.

Scope

Inspect/fix the generic Buzz code path for:

  • Edit Agent harness selection state
  • dirty-state / hasChanges logic
  • form validity
  • update payload construction
  • Tauri update_managed_agent
  • persistence of runtime, agent_command, agent_command_override / harness override
  • runtime spawn resolution after save

Do not solve with secret extraction, direct DB hacking, backing JSON-only mutation, or hardcoded Tweak/Pip/Kenny logic.

Local validation target

Non-production/local test path should prove a Codex-backed managed agent can select Hermes Profile ACP, Save becomes valid, save persists runtime = hermes-profile-acp, command hermes, correct override state, and restart resolves to Hermes launcher not codex-acp, without regressing unrelated agent edits.

fgdghooperator avatar Oct 06 '26 04:10 fgdghooperator

Commit gate evidence — local commit created

Issue: #8120 — Buzz Edit Agent custom harness/runtime selection does not persist

Local commit created on branch fix/buzz-8120-edit-agent-harness-persistence:

  • Commit: c4122b9b07e3a7d4b8de35d6ad552828671b5963
  • Subject: fix: persist managed-agent runtime selection
  • Worktree: /Users/fgdghooprtator/Developer/buzz-8120-edit-agent-harness-persistence
  • Base used for this gate: 8471049c430073474939336dfc6aa98272bc8762
  • Pre-commit HEAD: 95154bee4034ca7a40b33095c2ddbde8c9aa1614

Scoped files committed:

  • desktop/src/features/agents/ui/AgentInstanceEditDialog.tsx
  • desktop/src/features/agents/ui/personaRuntimeModel.ts
  • desktop/src/features/agents/ui/personaRuntimeModel.test.mjs
  • desktop/src/shared/api/types.ts
  • desktop/src-tauri/src/managed_agents/types/requests.rs
  • desktop/src-tauri/src/commands/agent_models_update.rs

Validation accepted before commit:

  • frontend tests: PASS — 5511 passed
  • lint: PASS
  • diff check: PASS
  • typecheck: PASS
  • focused Rust request tests: PASS — 2 passed / 0 failed
  • generic backend runtime-persistence: PASS at source/test level

Post-commit readback:

  • commit changed exactly the six scoped files
  • git diff --check HEAD~1 HEAD: PASS
  • worktree clean after commit
  • no push / PR / merge / live Buzz build/install performed

Remaining gate: push/PR is separate and not yet performed.

fgdghooperator avatar Oct 06 '26 05:10 fgdghooperator