mirror of
https://github.com/block/buzz.git
synced 2026-11-24 18:21:59 +00:00
A picked chip is now bound to its recipient by its place in the draft, not by its label. The editor carries each binding across every edit with a selection-aware diff, so deleting the first of two identical chips removes that recipient, text typed before a chip moves it, and a chip stays bound until an edit reaches into it or a letter or digit is typed directly against it. Punctuation, straight and curly apostrophes, a hyphen or a slash after a chip keep it and its recipient (`@Bob's idea`, `@Bob-bot`, `@Bob/Alice`), the same boundary rule buzz-app uses (recommendation 3). Namesakes no longer put a public key in the composer. A picked chip whose name another candidate shares reads the chooser's short label, `@Sam · a1b2`, while the draft text stays `@Sam`; both Sams can be picked and each chip keeps its own key. The sent content qualifies namesakes of different keys as `@Sam (<key>)` so bubbles still tell them apart, except inside code, and each picked Sam gets its own p tag (recommendation 4). The ambiguity refusal for a typed, unpicked `@sam` is unchanged. Drafts persist their bindings as positions (`mentions`), with the saved label-keyed `mention_keys` still read and an unreadable record kept as a tombstone that refuses to send while an `@` remains. The agent prefill and failed-send recovery restore text and bindings in one update. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: Matt Toohey <contact@matttoohey.com>