mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
The agent [Context] block rendered only the channel name. This adds the channel's description, topic, and purpose — already carried as about/topic/ purpose tags on the NIP-29 group metadata event the harness fetches, so no extra relay round-trips. Each field inlines verbatim when under a 200-char budget; longer values collapse to a placeholder pointing at `buzz channels get` to keep the prompt compact. Fields are wired through both ingestion paths: the discovery-time ChannelInfo cache (relay.rs) and the on-demand fetch_channel_info fallback (pool.rs). Canvas is deliberately out of scope: it is a separate event kind (40100), not on the metadata event, so surfacing it costs an extra fetch — left as a follow-up. Co-authored-by: Tyler Longwell <tlongwell@block.xyz> Signed-off-by: Tyler Longwell <tlongwell@block.xyz>