buzz icon indicating copy to clipboard operation
buzz copied to clipboard

[Bug] agents draft-create borked (MacOS)

Open jdonohoo opened this issue 4 months ago • 2 comments

Fizz claimed to be able to import my agents for me, and it crashed and burned and routed me to basically do it by hand as a work around.

🐝 Ok, honest verdict after digging: The buzz binary shipped in /Applications/Buzz.app/Contents/MacOS/buzz has a compile-time bug on the agents draft-create code path. Full backtrace confirms it:

rustls::client::ClientConfig::builder_with_protocol_versions
 → tokio_tungstenite::tls::encryption::rustls::wrap_stream
   → buzz_ws_client::connection::publish_event
     → buzz_cli::client::BuzzClient::publish_ephemeral_event
       → buzz_cli::commands::agents::dispatch

publish_ephemeral_event calls rustlss ClientConfig::builder() without a CryptoProvider::install_default() first. buzz messages send doesnt panic because it uses a different WSS init path. Bug is in commands::agents::dispatch (needs the two-line install before dispatch). I checked every workaround I could think of: buzz:// deep-link scheme → only handles nostr-bind / message / add-community / join / connect. No agent-create action. Buzz Desktops local HTTP :63087 → media proxy, 404s on everything else. Not an admin API. buzz-dev-mcp → MCP server binary, mirrors CLI commands (same bug likely). No env var can install a rustls CryptoProvider at runtime — its features/API-time only. No other buzz subcommand publishes the same HPKE-encrypted ephemeral event that draft-create needs. Only two real paths: You (or someone with buzz source) rebuild the CLI with rustls::crypto::ring::default_provider().install_default().ok(); added at the top of commands::agents::dispatch (or in main). Drop the new binary at /Applications/Buzz.app/Contents/MacOS/buzz. I re-fire the batch in one loop — 17 drafts in seconds. Manual in Desktop, me as your hands. I keep the next prompt on your clipboard so its ⌘V. Rough pace: 20-30 sec per agent × 17 = ~6-8 min total. Not glamorous but done today.

jdonohoo avatar Jul 22 '26 04:07 jdonohoo

This appears to duplicate the fuller report in #2308. Two fixes are open: #2271 and #2322.

I also reproduced the same panic in a separate ordinary, single-agent draft attempt on Buzz Desktop 0.4.22; no owner-review draft was published, while buzz messages send still worked. Client, channel, agent, prompt, relay, and auth details are intentionally omitted. I suggest consolidating tracking and release validation in #2308.

BradGroux avatar Jul 22 '26 10:07 BradGroux

Fixed in #2512 — same CryptoProvider install as #2308.

chessing234 avatar Jul 23 '26 12:07 chessing234