feat(mesh): upgrade to v0.74 and make shared agents reply reliably
Summary
- Upgrade embedded Mesh to v0.74 and use canonical Gemma model IDs.
- Keep shared compute serving through member joins, roster changes, app recovery, and community switching (no crashy!).
- Wait for actual model readiness and avoid resuming incomplete downloads after quit.
- mesh only scoped tweaks: improvements with buzz agent using mesh with thinking modes (corrected so they don't interfere) a reply tool (so it can talk back) and a failsafe to scoop up responses if that fails for small models (and scoped to mesh/shared compute only, no other providers affected).
Live validation
Tested across two Macs: a production Buzz 0.73.1 client joined and messaged an agent while this development build hosted Mesh v0.74. The host stayed in serving mode, Gemma completed both turns, and the agent log confirmed both replies were published back to the channel.
Also tested a build https://github.com/michaelneale/buzz-testing/releases/tag/v0.5.1-test1 across 2 unrelated machines and it sustained a connection, shared compute reliably.
Testing
Focused ACP, desktop Mesh, and harness checks pass locally. Full CI is running on this PR.
ok - yes this is working quite well now - even for a small model. The other fixes for sharing seem ok too. This did require a reply tool added, and a mesh scoped change to scoop up missed replies so it returns to buz, but that seems to work well. Shouldn't impact other models outside of mesh.
It also needed some tweaks to ensure thinking modes are used appropriately (very sensitive to those).
finally! end to end.
Split requested by Tyler: the mesh-scoped commits from this PR (mesh v0.74 upgrade + shared-compute hardening + thinking-effort defaults) are now separately mergeable as #3741, with authorship preserved. The agent/ACP reply-behavior work (send_message tool, plain-reply delivery, e2e P5/P6, and the llm.rs reasoning→text parser change from 2cd640b23) remains here as part 2 — details in #3741's description.
Closing per Tyler — this PR has been split, and the mesh half now lives in #3741.
What #3741 carries (rebased onto current main, Mic kept as author on all commits): the mesh v0.74 upgrade + shared-compute hardening (2cd640b23 minus the llm.rs parser change) and both thinking-effort commits (0ad81c341, ad13ed841). It has been independently verified and redteamed at head a360bf82a — CI fully green, live serve→join→inference proven on hardware — and is awaiting human approval to merge.
What still needs a new PR (part 2) — the agent/ACP reply-behavior work from this branch:
- the typed
send_messagetool in dev-mcp (7b7b56f89) + itsBUZZ_ACP_SEND_MESSAGE_TOOLgating (239542e83) - the plain-reply delivery fallback in buzz-acp behind
BUZZ_ACP_DELIVER_PLAIN_REPLIES(bb4af4189,a11e7b85e) - the
mesh_agent_e2eP5/P6 rewrite (bf735e235) - the
crates/buzz-agent/src/llm.rsreasoning→text promotion from2cd640b23— deliberately excluded from #3741 because it unconditionally affects every OpenAI-compat/Responses provider, so it deserves review as the behavior change it is - the two
relay_mesh.rsopt-in env lines for the flags above
None of that work is lost — it's all on micspiral/mesh-0-74-gemma and can be cherry-picked onto main once #3741 lands (the only overlap is relay_mesh.rs and the e2e example, both trivial).
Thanks Mic — the commit hygiene on this branch is what made the split clean.