buzz icon indicating copy to clipboard operation
buzz copied to clipboard

Desktop: the next MeshLLM release removes the SDK client API that compute sharing uses

Open kleinbem opened this issue 1 month ago • 1 comments

Motivation Mesh-LLM/mesh-llm#2241 (merged 2026-10-07, in no release yet, so it arrives with the next one after 0.78.x) replaces the SDK's thin-client and serve entry points with one MeshNode (MeshNode::builder().client() / .serve() / .serve_only()), with no compatibility shim. The SDK's client feature is gone.

Buzz's compute sharing uses exactly those entry points, all in desktop/src-tauri/src/mesh_llm/mod.rs:

  • use mesh_llm_sdk::{client, serve, EmbeddedNodeHandle, MeshDiscoveryMode, TrustPolicy};
  • serve::EmbeddedServeConfig::builder() and serve::start(...);
  • client::EmbeddedClientConfig::builder() and client::start(config);
  • mesh_llm_sdk::EmbeddedNodeStatus;
  • mesh-llm-sdk with features = ["client", "serving"] in desktop/src-tauri/Cargo.toml.

So the upgrade after #7938 is a code change, not only a version bump. Pinning the six mesh-llm crates to current Mesh-LLM main already fails in dependency resolution (mesh-llm-sdk does not have feature client).

It matters for mixed meshes too: split serving needs the same stage protocol generation on every node (0.76.2 has 8, 0.77 and later 11, checked for an exact match), so a desktop that stays on an older MeshLLM can join a newer mesh but not share a model with its nodes.

Proposed solution Port mesh_llm/mod.rs to MeshNode when Buzz moves past 0.78, or ahead of the release against Mesh-LLM main. #2241's description lists the replacements (roles on the builder, MeshNode::openai_client(), owner keystore path instead of the in-memory keypair).

Alternatives considered Staying on 0.77/0.78 keeps the old API but leaves Buzz on an older stage generation than new MeshLLM nodes.

Additional context I found this while packaging Buzz and MeshLLM for nixpkgs, where I build Buzz main against Mesh-LLM main to catch such breaks early. Happy to help test a port.

kleinbem avatar Oct 23 '26 08:10 kleinbem

Closing: I'm focusing on Buzz 1.0, where block/buzz-app#1156 already moves to the new API. For a 0.X port, the same route works here: EmbeddedMeshNodeConfig::builder() (it still has disable_iroh_relays) plus mesh_llm_host_runtime::sdk.

kleinbem avatar Oct 23 '26 12:10 kleinbem