buzz icon indicating copy to clipboard operation
buzz copied to clipboard

Desktop starts managed agents with is_active: false (periodic reconcile ignores all three deactivation fields)

Open AnobleSCM opened this issue 3 months ago • 1 comments

What happens

A managed agent with is_active: false in managed-agents.json is started anyway by Buzz Desktop, on a roughly 21–23 minute cycle. Setting the other two plausible fields makes no difference.

I hit this while migrating a bring-your-own-harness seat off Desktop management onto a standalone buzz-acp bridge. Desktop kept starting a second supervisor for the same agent identity, so two processes were live on one pubkey.

Reproduction

  1. Have a managed agent (mine was a custom-harness seat, agent_command_override set).
  2. Quit Buzz Desktop.
  3. In managed-agents.json, on that agent's deployment record set is_active: false and start_on_app_launch: false.
  4. Relaunch Desktop.
  5. At launch the agent correctly does not start — so the fields are read.
  6. Wait ~20 minutes.

Expected: it stays stopped. Actual: Desktop starts it and writes a fresh last_started_at, so the start is deliberate rather than a stray process.

Observed timeline

time (UTC) fields set at that point result
22:54:08 is_active=false, start_on_app_launch=false started
23:15:28 same (I had killed the previous one) started
23:38:54 + auto_restart_on_config_change=false started

The ~21 and ~23 minute spacing suggests a periodic reconcile pass rather than a config-change trigger — which matches auto_restart_on_config_change: false making no difference.

Why it matters

There appears to be no supported way to stop Desktop managing an agent while keeping its record. For anyone running a seat under their own supervisor, this produces two live processes on one identity — duplicate replies at best, and in my case the duplicate had a path to credentials the intended process did not.

See also the companion report: deleting the deployment record does not help either, because Desktop recreates it.

Environment

Buzz Desktop 0.5.3, macOS 15 (Darwin 24.6.0), self-hosted relay on ghcr.io/block/buzz:main (2026-08-01 build).

AnobleSCM avatar Aug 03 '26 01:08 AnobleSCM

Correction from continued investigation (same machine, 12 more days of data): the "periodic reconcile ignores deactivation fields" half of this report does not hold up. Six deactivated deployment records across three other agents (is_active: false) have sat unspawned for 12+ days, and a 100-minute instrumented soak (persona present, deployment absent) recorded zero recreations and zero spawns. Every revival we can attribute lines up with either (a) app launch/wake — Desktop recreates a deleted deployment record from a surviving persona with default flags; that half is #4451, unaffected, re-observed 2026-08-03 on wake — or (b) inbound @-mention traffic to the affected agent: the agent that kept reviving was the only one receiving mentions. We now believe we read traffic-correlated revival as a ~21–23 min reconcile loop. We can no longer reproduce (the agent's records are removed entirely by design). Please treat the reconcile-loop claim as retracted; the deletion-recreate behavior (#4451) stands as filed.

AnobleSCM avatar Aug 03 '26 18:08 AnobleSCM