buzz-acp: agents accept messages but never dispatch to harness — dispatch loop appears to wedge minutes after startup (all harness types, v0.5.3)
Buzz bug report — OmniRoute Operator (custom ACP harness) stopped processing messages
Buzz version: v0.5.3 (Windows) Agent: OmniRoute Operator, custom ACP harness (bridge validated independently — see "Harness is not the problem" below) Date symptoms began: 2026-08-02 (worked correctly 2026-08-01) Scope update (2026-08-02 ~21:00): the dispatch failure is NOT specific to the custom harness — see Bug C below; claude-agent-acp and codex-acp agents show identical pool-init-without-dispatch, and one agent gets stuck in setup-listener mode.
Summary
The agent receives messages (relay subscription active, membership/channel events arrive, agent pool initializes in response to an incoming message) but never dispatches a prompt to the harness. No agent_returned, no error, no requeue — the harness's ACP stdio stays silent. The same harness processed owner DMs correctly the previous day.
Timeline (all times UTC, from agent logs)
2026-08-01 — WORKING
- 12:07–13:22: Owner DMs processed end-to-end; two successful runs (~6 min each), replies posted in channel. Agent command at the time was incorrectly set to
claude-agent-acp.cmd(unauthenticated) — expected "Authentication required" errors observed, then harness switched to custom bridge and everything worked.
2026-08-01 13:39 — custom harness confirmed healthy
agent_cmd=C:\WINDOWS\system32\wsl.exe bash -lc /home/webgive/stacks/crewai-orchestrator/bridge/acp_bridge.pymodel=crewai-fixed-lineuppicked up from_meta.modelsin initialize response.
2026-08-02 10:43 — first silent failure
- Owner (me) sent a DM. Log shows ZERO events at that timestamp — no channel event, no batch, nothing. Presence showed online.
2026-08-02 14:27 — restart after config change
- Restarted agent (stop/start). Startup banner still shows
respond_to=owner-onlydespite "Who can send instructions" being set to "Selected people" and saved (see Bug B below).
2026-08-02 15:02:39 — pool initializes but no dispatch
- ~1 min after owner message, all 10 pool agents initialize (
agent initialized ... agent=0..9,agent_pool_ready agents=10), then nothing. No session/prompt reaches the harness (no activity on its stdio), noagent_returned, no queue/requeue lines.
2026-08-02 20:27 — @mention test, total silence
- Owner sent
@OmniRoute Operator Create a file called world5.txt ...in the original DM channel (the one that worked on 2026-08-01). Log shows no new lines at all in the following minutes.
Bug A: messages accepted but never dispatched to harness
Symptoms as above. Notably the failure mode differs by send:
- Some sends produce zero log lines (20:27)
- One send produced pool init but no dispatch (15:02)
- All produce no user-visible response, no error surfaced anywhere in the UI
Hypotheses I cannot verify from outside: a wedged internal queue after 2026-08-01's auth-failure requeue loop (attempts 1–6 of 10 logged before agent stop), DM/mention routing change between 08-01 and 08-02, or stale channel state (the agent is subscribed to 4 channels: 2c7038a9, 84721bf3, b11e7898, d1821d0d — the original working DM is 84721bf3).
Bug B: "Who can send instructions" does not propagate to runtime
- Set to "Selected people" (3 agents added via the people picker), clicked Save changes, restarted the agent 6+ times across the day.
- Every startup banner still shows
respond_to=owner-only. - Consequence: agent-to-agent delegation is silently dropped — another agent (Codex Builder) added this agent to a group chat and sent a brief at 14:42; only the
membership notification: subscribing to new channelline appears, the message itself is never processed.
Harness is not the problem
The custom ACP bridge is independently verified:
- 16/16 unit tests; live JSON-RPC transcript tests (initialize / session/new / session/prompt / session/cancel) all pass outside Buzz.
- Streams sessionUpdate chunks correctly; handled a full real run on 2026-08-01 with 2,422 streamed chunks.
- Responds to
session/set_config_option(visible in logs) — so Buzz CAN reach it. - The failure is upstream of the harness: no
session/promptever arrives on its stdio during the silent windows.
Environment
- agent_cmd:
C:\WINDOWS\system32\wsl.exe bash -lc /home/webgive/stacks/crewai-orchestrator/bridge/acp_bridge.py - model:
crewai-fixed-lineup(advertised via_meta.models; also viasession/newconfigOptions per ACP v1) - Startup flags:
subscribe=Mentions dedup=Queue respond_to=owner-only permission_mode=bypassPermissions agents=10 - Relay:
wss://cenenta.communities.buzz.xyz(two WebSocket "Connection reset without closing handshake" events on 08-01, both auto-recovered)
Reproduction
- Create custom ACP harness agent, verify owner DM works (08-01 behavior).
- Next day, send owner DM → silence.
- Restart agent → send again → pool may initialize, still no dispatch.
- Set "Who can send instructions" → "Selected people", save, restart → banner still
respond_to=owner-only; agent messages still dropped.
Bug C: identical dispatch failure on built-in ACP agents (claude-agent-acp, codex-acp)
The failure is not harness-specific — it is in buzz-acp's message→dispatch path. Observed same evening, all owner DMs, all respond_to=owner-only so owner messages should pass the filter:
- Claude Dev (
claude-agent-acpv0.64.0, agents=10): owner DM at 20:46 → all 10 pool agents initialize (agent_pool_ready agents=10) → nosession/promptdispatch, no reply. Agent restarted at 20:51:10; a second owner message after restart → silence. NOTE: the 20:46 message also arrived during the previous run'sidle_timeout=900swindow (agent had been idle since 15:01, i.e. ~5h45m), so dispatch after long idle is also implicated. - Codex Builder (
codex-acpv1.1.7, agents=2): owner DM at 20:47 → pool re-inits (agent_pool_ready agents=2) → no dispatch. Earlier at 14:42 this agent DID process an owner message and replied — the only successful dispatch all day across all agents. (That success was ~3.5 min after a restart.) - Claude Dev setup-mode wedge (possibly separate): across restarts at 09:42, 09:49, and 14:27 the agent entered
setup-listener mode ... requirements=1and never exited it — subscribing to channels but processing nothing. Only the 15:01 restart (after re-authenticating Claude Code in the terminal) reached normal startup. If setup mode is supposed to be resolved by in-app auth UI, there was no user-visible prompt in any of those three windows.
Pattern: the only successful dispatch of the day happened within ~4 minutes of an agent restart. Every message sent to an agent that had been running for longer (minutes to hours) produced pool-init-only or total silence. This points at the event-processing/dispatch loop wedging shortly after startup, not at harnesses, auth, or channel subscriptions (which all initialize cleanly).
Requested investigation
- Why does an incoming owner message trigger pool init but no
session/promptdispatch (15:02, 20:46, 20:47 events)? - Why do some messages produce zero log lines at all (10:43, 20:27)?
- Does the dispatch loop wedge after some time/idle period? (Only success today was ~4 min post-restart; failures at 14 min, ~1 min, ~5h45m post-start.)
- Why doesn't the "Selected people" setting reach the runtime
respond_toflag? - Why did Claude Dev sit in setup-listener mode across three restarts with no UI prompt to resolve it?
- Is there a way to inspect/flush the agent's internal event queue (
dedup=Queue)?
Additional reproduction: macOS v0.5.4, built-in Claude ACP
Observed on 2026-08-04 in a hosted community with the packaged macOS Buzz Desktop v0.5.4 and the built-in claude-agent-acp harness.
A Claude agent initially dispatched normally from a channel mention and produced a clean committed checkpoint in an external worktree. The Activity transcript then stopped advancing for more than five minutes after 10 tool calls. No owned child command was still running and the worktree remained clean at the checkpoint SHA.
Recovery sequence and result:
- Used the agent profile's Restart action (no broad process termination). The old buzz-acp process was replaced by a new process; the profile showed running and presence returned online.
- Sent two fresh owner channel mentions after presence was online. Both appeared as delivered messages, but neither created an Activity turn or ACP transcript and the worktree did not change.
- Sent a fresh owner DM after presence was online. It was delivered, but again produced no Activity turn, session/prompt, reply, file change, or commit.
- Gracefully quit and relaunched the entire Buzz app, waited for the same agent to show online, then sent another fresh owner DM. It was delivered, but still produced no Activity turn or worktree change after several minutes.
This distinguishes relay publication/presence from dispatch: messages are visible and the agent is online, yet the harness receives no new turn. It also shows that both the per-agent Restart and a full desktop relaunch can fail to restore dispatch.
The exact committed checkpoint and task content are not important to reproduction; no credentials or private transcript contents are included here.
Correction and stronger harness-log evidence after the earlier comment:
The per-agent Restart case remains a true post-readiness failure. On that run:
- agent_pool_ready completed at 17:06:51Z;
- relay connection, owner resolution, three channel subscriptions, and online presence completed by 17:06:59Z;
- fresh owner channel mentions and a DM were visibly delivered afterward;
- the harness recorded no event, queue, steer, prompt, or dispatch activity before shutdown at 17:12:38Z.
The full desktop relaunch case was different, and I am retracting the earlier implication that it proved a post-readiness failure:
- the UI/presence reported online at 17:12:58Z;
- the ten-worker ACP pool did not report agent_pool_ready until 17:18:22Z;
- the relay also underwent five reconnect attempts, then publish/ping timeouts and another reconnect before stabilizing at 17:19:01Z;
- the previously delivered DM finally dispatched after readiness/stability and produced a visible reply at 17:23Z, resuming the task from its preserved SHA.
A later owner DM sent while that turn was active reached the harness immediately as a successful non-cancelling steer at 17:26:48Z.
So there are two separable problems:
- The per-agent Restart run still matches this issue: ready, subscribed, online, owner messages delivered, but no harness event at all.
- Full-app startup exposes online before agent_pool_ready and before relay stability. Messages in that gap are not reliable, while post-readiness dispatch and in-flight steering do work.
This correction is based on the packaged v0.5.4 harness log, not UI inference.
Additional packaged macOS v0.5.4 evidence from the built-in codex-acp 1.1.9 path:
- The Codex B buzz-acp harness started at 17:12:57Z and had connected, resolved its owner, discovered three channels, and subscribed to its DM by 17:13:23Z.
- The profile/presence surface reported the agent online during startup, but its ten ACP workers did not finish agent_pool_ready until 17:50:51Z — more than 37 minutes after channel subscription.
- An owner DM review request was visibly stored in that subscribed DM around pool completion. At 17:50:56Z the harness logged: DM context fetch timed out — will retry, for that exact DM channel.
- Through 17:55:31Z there was no retry line, session/prompt dispatch, Activity turn, reply, or worktree change. The requested immutable PR SHA remained unchanged and available.
- A Claude ACP identity in the same desktop/community dispatched successfully after an explicit pool-ready + subscription + desktop-relay gate, so this is not evidence of a general credential or repository failure.
This adds a third separable failure mode to the prior report: channel subscription and eventual agent_pool_ready can both succeed, yet the DM context fetch times out and the stated retry produces no observable follow-up. The user-visible online state spans the entire long pool-init gap and gives no indication that dispatch is unavailable.
Suggested observability/recovery: expose pool readiness and context-fetch retry state separately from presence; retain the queued event until a terminal dispatch/requeue receipt exists; surface a retry-exhausted action instead of leaving the DM silently pending.
Source correlation for the Codex B observation above (and a precision note): I am not claiming the retry is absent from source.
In the desktop-v0.5.4 tag, crates/buzz-acp/src/pool.rs wraps DM context fetches in fetch_with_retry. It calls the closure once, sleeps 500 ms on None, and calls it once more. Each closure call has a 3 s Tokio timeout, so the documented worst case is about 6.5 s. Both failed attempts would emit the same DM context fetch timed out — will retry warning before the function fails open and prompt construction continues.
The packaged harness emitted exactly one such warning at 17:50:56Z, then no second warning, prompt, requeue, or terminal result for more than five minutes. All relevant processes remained alive but sleeping. Therefore the new evidence is narrower: the runtime did not complete the source-defined second-attempt/fail-open path, despite the bounded timers; it is not evidence that no retry code exists.
Relevant source at the shipped tag:
- https://github.com/block/buzz/blob/desktop-v0.5.4/crates/buzz-acp/src/pool.rs#L812-L821
- https://github.com/block/buzz/blob/desktop-v0.5.4/crates/buzz-acp/src/pool.rs#L2321-L2336
- https://github.com/block/buzz/blob/desktop-v0.5.4/crates/buzz-acp/src/pool.rs#L2966-L3009
A regression test should hold the inner REST future pending, advance paused Tokio time through both 3 s budgets plus the 500 ms delay, and assert the batch reaches a terminal fail-open dispatch or explicit requeue receipt rather than remaining in-flight.