Skip to content

Bump block/buzz to pick up messages search --before - #3362

Draft
tmellor-block wants to merge 1 commit into
mainfrom
tmellor/bump-buzz-messages-search-before
Draft

tmellor-block wants to merge 1 commit into
mainfrom
tmellor/bump-buzz-messages-search-before

Conversation

@tmellor-block

Copy link
Copy Markdown

What this does

Moves the block/buzz pin from c8d736642e1c to 0e6037c74d67 (block/buzz#9382). That one pin, the buzz-audio-client git dependency in src-tauri/Cargo.toml, also picks the revision that scripts/build-buzz-cli.mjs builds the bundled buzz CLI from. So the bundled CLI gains buzz messages search --before and --before-id, for paging back through an author's messages.

The diff is two lines: the rev in src-tauri/Cargo.toml and the matching source line in Cargo.lock. Nothing else in the lock file moves, and --locked builds accept it.

What the bump brings in

The range has 88 block/buzz commits. Only two things from block/buzz ship in Buzz Desktop: the buzz-audio-client crate and the bundled buzz CLI, plus the in-repo crates it builds with (buzz-core, buzz-sdk, buzz-ws-client, buzz-persona).

Huddle audio client (crates/buzz-audio-client, one change)

  • feat: send a User-Agent on relay WebSocket upgrades buzz#9246: the audio WebSocket upgrade now sends User-Agent: buzz-audio-client/<version> when the caller didn't set one. Buzz Desktop sets no User-Agent on the audio socket (src-tauri/src/relay/huddle/audio.rs), so huddle audio connections now carry this header. No API change; the desktop code compiles unchanged.

Bundled buzz CLI

Not shipped in this app (no effect on Buzz Desktop)

  • Mobile app: about 45 commits (iOS gallery and video, Solo chats, Activity, notifications, pickers).
  • Relay and server: about 28 commits (cross-node delivery, filter fixes, DM rules for agents, invite previews, NIP-FI policy, single-community mode, database pool recovery, Buzz Relay 0.3.0 release).
  • CI, release tooling, docs and the old desktop client in block/buzz: about 10 commits.

Testing

Run by an agent on macOS (Apple Silicon):

  • cargo fmt --all --check: pass.
  • cargo clippy --workspace --locked --all-targets -- -D warnings: pass.
  • cargo test --manifest-path src-tauri/Cargo.toml --locked: 1121 + 24 passed, 0 failed, with 15 tests skipped for local reasons that have nothing to do with the bump. The 21 relay::huddle::audio tests pass. Skipped: the media-conversion tests (media_preparation, converted_spool), because this machine's Homebrew ffmpeg can't load libx265, and window_state::tests::onboarding_snapshot_is_kept_until_next_launch_restore, which crashes the test process (SIGSEGV) on this machine with the old pin too. CI runs the full suite on Linux.
  • node scripts/test-buzz-cli.mjs (stages the CLI the way a desktop build does, then runs it): pass. The staged buzz messages search --help lists --before and --before-id.
  • Desktop pairing against a running Buzz Desktop: buzz auth desktop list with the new CLI reports an existing pairing as accepted. That path runs the new same-user socket check on macOS.
  • Live paging through that pairing, read-only: an author search with --since … --before <now> --limit 5, then a second page with --before <last created_at> --before-id <last id>. Page 2 started right after page 1's last event, with no overlap and nothing newer than the cursor. The old CLI rejects --before as an unknown argument.

Not tested:

  • A live huddle. Audio is covered only by the existing relay::huddle::audio unit tests, not by a real call.
  • Pairing a new CLI from scratch (buzz auth desktop pair), which needs a person to click Allow.
  • messages edit against a live relay (it writes).
  • Windows and Linux builds; CI covers Linux.

Note for local testing

scripts/build-buzz-cli.mjs shares one Cargo build directory (target/buzz-cli-build) across block/buzz revisions. Cargo treats git checkouts as unchanging, so after a rev bump it can reuse the old revision's CLI build and stage the old binary under the new rev's name. If src-tauri/resources/bin/buzz messages search --help doesn't list --before after just desktop, delete target/buzz-cli-build and target/buzz-cli/0e6037c74d67930de36143ed4661f469039d8dc7 in the main checkout and run it again. This PR doesn't change the script.

🤖 Generated with Claude Code

Move the buzz-audio-client pin, which also selects the bundled buzz CLI
revision, from c8d736642e1c to 0e6037c74d67 (block/buzz#9382). The
bundled CLI gains `messages search --before` and `--before-id` for
paging back through an author's messages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tim Mellor <117199716+tmellor-block@users.noreply.github.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant