From e715ad77afb610bc15347c4c5b9ba1636236c606 Mon Sep 17 00:00:00 2001 From: SHL0MS Date: Tue, 28 Jul 2026 12:40:56 -0400 Subject: [PATCH 1/2] fix(desktop): resolve the Hermes preset by a command that is on PATH The hermes preset spawned `hermes-acp`, a console script that exists only inside the Hermes install's own venv. That directory is not on the login-shell PATH, so resolve_command() found nothing and the runtime was marked unavailable. An unavailable preset with no auto-installer fails isYourHarnessEntry(), so no row rendered under "Your runtimes" at all. Hermes still appeared under "Add runtimes", which made this look like a detection failure rather than a missing install. Use `hermes acp` instead. `hermes` is the launcher the Hermes installer writes to ~/.local/bin, which is both on the login-shell PATH and in common_binary_paths(). Both invocations reach the same ACP server. Verified on macOS with Buzz 0.5.0 and Hermes 0.19.0. Buzz's own probe, /bin/zsh -l -c 'command -v -- "$1"' run under env -i, resolves `hermes-acp` to nothing and `hermes` to ~/.local/bin/hermes. Driving `hermes acp` over stdio returns agentInfo {name: hermes-agent, version: 0.19.0} with loadSession support. Signed-off-by: SHL0MS --- desktop/src-tauri/src/managed_agents/discovery.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/desktop/src-tauri/src/managed_agents/discovery.rs b/desktop/src-tauri/src/managed_agents/discovery.rs index 71e689330f..6850d1c34d 100644 --- a/desktop/src-tauri/src/managed_agents/discovery.rs +++ b/desktop/src-tauri/src/managed_agents/discovery.rs @@ -1576,10 +1576,14 @@ const PRESET_HARNESSES: &[PresetHarness] = &[ PresetHarness { id: "hermes", label: "Hermes Agent", - command: "hermes-acp", - args: &[], + // `hermes` is the launcher the Hermes installer writes to ~/.local/bin, + // which is on the login-shell PATH. The `hermes-acp` console script + // exists only inside Hermes' own venv, which is not, so resolving by + // that name fails on a default install. + command: "hermes", + args: &["acp"], install_instructions_url: "https://hermes-agent.nousresearch.com", - install_hint: "Buzz talks to Hermes Agent through its hermes-acp command.", + install_hint: "Buzz talks to Hermes Agent through its ACP mode (hermes acp).", underlying_cli: None, }, PresetHarness { From 4a0d08e757acefb38677b2154fc2f73be81947a5 Mon Sep 17 00:00:00 2001 From: "Fizz (agent)" <028ec8fae77341e1e8ff92ba1b49368dda1dc9951e8d2dc0b05b460f8589e5a4@buzz.block.builderlab.xyz> Date: Tue, 28 Jul 2026 15:16:45 -0700 Subject: [PATCH 2/2] chore(desktop): ratchet discovery.rs file-size limit 1860 -> 1864 The hermes-preset fix plus its explanatory comment take discovery.rs to 1864 lines after merging main. Bump the existing override to match, following the repo's ratchet convention. Co-authored-by: Phuoc (Phu) Do <91568955+dophsquare@users.noreply.github.com> Signed-off-by: Phuoc (Phu) Do <91568955+dophsquare@users.noreply.github.com> --- desktop/scripts/check-file-sizes.mjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/desktop/scripts/check-file-sizes.mjs b/desktop/scripts/check-file-sizes.mjs index 3983fa591d..2ed82c57e5 100644 --- a/desktop/scripts/check-file-sizes.mjs +++ b/desktop/scripts/check-file-sizes.mjs @@ -352,7 +352,10 @@ const overrides = new Map([ // +19: codex-acp minimum-version gate — MIN_CODEX_ACP_VERSION plus the strict // three-component parse in probe_codex_acp_version, so an outdated 1.x adapter // is offered a reinstall instead of classifying as Available on major alone. - ["src-tauri/src/managed_agents/discovery.rs", 1860], + // +4 (1860 -> 1864): Hermes preset resolves via `hermes acp` with a comment + // explaining why the venv-only `hermes-acp` console script fails on a default + // install. Queued to split with the rest of this list. + ["src-tauri/src/managed_agents/discovery.rs", 1864], // BYOH — save_custom_harness_to_dir (backup-swap atomic write) + save_and_warm / // delete_and_warm (persist-mutex serialization for concurrent-safe registry // refresh, B-6). Also: id/collision/load/registry tests (from the file base) +