diff --git a/crates/buzz-cli/src/commands/sidebar.rs b/crates/buzz-cli/src/commands/sidebar.rs index 75ef413487..e0081e0f78 100644 --- a/crates/buzz-cli/src/commands/sidebar.rs +++ b/crates/buzz-cli/src/commands/sidebar.rs @@ -36,6 +36,9 @@ fn now() -> std::time::Duration { /// The relay's current sections event for this identity, decoded. An absent /// head is an empty tree; an unreadable one is an error, never an empty list. +/// The read is pinned to the writer (`consistency: strong`): a write derives a +/// full snapshot from it, and a lagging replica would drop the caller's own +/// just-accepted edits. async fn fetch_head(client: &BuzzClient) -> Result
{ let me = client.keys().public_key(); let filter = json!({ @@ -43,6 +46,7 @@ async fn fetch_head(client: &BuzzClient) -> Result { "authors": [me.to_hex()], "#d": [D_TAG], "limit": 1, + "consistency": "strong", }); let raw = client.query(&filter).await?; let events: Vec