fix(mesh): run relay-mesh agents on sprout-agent, not goose#847
Merged
tlongwell-block merged 1 commit intoJun 4, 2026
Merged
Conversation
The "Run on relay mesh" preset handed the agent the global default runtime (goose) while setting SPROUT_AGENT_PROVIDER + OPENAI_COMPAT_* env vars. Goose ignores those and falls back to its own configured provider, so mesh agents never used the local mesh endpoint. Source the agent command and MCP from the sprout-agent provider catalog entry, which reads those env vars (crates/sprout-agent/src/config.rs). This matches the frontend preset contract (agentCommand: sprout-agent, mcpCommand: sprout-dev-mcp) the JS test fixture already documented. Signed-off-by: npub1qyvc0c5kl4gqv2fd97fsk46tu378sqgy35vc83rvgfwne90sel7s0ed67d <011987e296fd5006292d2f930b574be47c7801048d1983c46c425d3c95f0cffd@sprout-oss.stage.blox.sqprod.co>
b2d2079 to
f40c010
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Relay-mesh agents now run on the sprout-agent runtime instead of goose.
mesh_llm::agent_presetsetagent_command = DEFAULT_AGENT_COMMAND(goose) andmcp_command = DEFAULT_MCP_COMMAND(sprout-mcp-server) while emittingSPROUT_AGENT_PROVIDER=openai+OPENAI_COMPAT_*env vars. Goose ignores those vars and falls back to its own configured provider, so mesh agents never used the local mesh endpoint.The env set was already correct — it's exactly what
crates/sprout-agent/src/config.rsreads. It was just being handed to the wrong runtime.Change
agent_command/mcp_commandnow sourced from thesprout-agentprovider catalog entry (known_acp_provider_exact) →sprout-agent/sprout-dev-mcp, with consts as fallbacks. Can't drift from the provider definition.preset.rsvia the existing#[path]pattern —mod.rswas at 495 lines (the 500-line budget ceiling); this keeps it under and isolates preset logic. Reads as:mod.rs−48 (move-out),preset.rs+69 (move-in + the fix),mod_tests.rs+32 (regression test).agent_preset_runs_on_sprout_agent_not_goose.Matches the frontend
applyMeshAgentPreset.test.mjscontract, which already expectedagentCommand: sprout-agent/mcpCommand: sprout-dev-mcp.Verification
cargo test -p sprout-desktop --features mesh-llm --lib: 441 pass + new regression testdesktop-tauri-clippy,desktop-tauri-test, workspaceclippy,test-unit— all greenStacked on #846.