fix: rename missed known_acp_provider_exact → known_acp_runtime_exact (#900)

This commit is contained in:
tlongwell-block
2026-06-08 09:29:12 -04:00
committed by GitHub
parent 97bdb79ded
commit 2ebe551741
2 changed files with 2 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ const MESH_API_PORT_ENV: &str = "SPROUT_MESH_API_PORT";
const MESH_CONSOLE_PORT_ENV: &str = "SPROUT_MESH_CONSOLE_PORT";
const RELAY_MESH_API_KEY_PLACEHOLDER: &str = "sprout-mesh-local";
/// ACP provider relay-mesh agents run on. Sources of truth for its command +
/// MCP live in the provider catalog (`known_acp_provider_exact`); these are
/// MCP live in the runtime catalog (`known_acp_runtime_exact`); these are
/// only the fallbacks. `sprout-agent` reads the `SPROUT_AGENT_PROVIDER` /
/// `OPENAI_COMPAT_*` env vars below — goose (the global default) does not.
const MESH_AGENT_PROVIDER_ID: &str = "sprout-agent";

View File

@@ -35,7 +35,7 @@ pub fn agent_preset(request: MeshAgentPresetRequest) -> Result<MeshAgentPreset,
}
// Run on sprout-agent, not the global default (goose). Source command +
// MCP from the catalog so this can't drift from the provider definition.
let sprout_agent = crate::managed_agents::known_acp_provider_exact(MESH_AGENT_PROVIDER_ID);
let sprout_agent = crate::managed_agents::known_acp_runtime_exact(MESH_AGENT_PROVIDER_ID);
let agent_command = sprout_agent
.and_then(|p| p.commands.first().copied())
.unwrap_or(MESH_AGENT_PROVIDER_ID)