Show MCP server failures in the UI instead of debug log

MCP server spawn failures were going to dbglog where the user
wouldn't see them. Route through the agent's notify so they appear
on the status bar.

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
ProofOfConcept 2026-04-09 22:45:11 -04:00 committed by Kent Overstreet
parent 3e0d52c451
commit 15f3be27ce
2 changed files with 16 additions and 6 deletions

View file

@ -164,7 +164,7 @@ pub async fn dispatch_with_agent(
None => true,
};
if allowed {
if let Ok(result) = mcp_client::call_tool(name, args).await {
if let Ok(result) = mcp_client::call_tool(name, args, agent.as_ref()).await {
return result;
}
}