Skip to content

fix(mcp): don't trigger circuit breaker on business errors (#47851) - #47955

Closed
kyssta-exe wants to merge 1 commit into
NousResearch:mainfrom
kyssta-exe:auto-fix/issue-47851
Closed

fix(mcp): don't trigger circuit breaker on business errors (#47851)#47955
kyssta-exe wants to merge 1 commit into
NousResearch:mainfrom
kyssta-exe:auto-fix/issue-47851

Conversation

@kyssta-exe

Copy link
Copy Markdown
Contributor

Fixes #47851. Add a _business_error flag to MCP tool results that come from isError=true responses, so the circuit breaker only bumps the error count for actual server failures, not business-logic errors returned by the tool.

@alt-glitch alt-glitch added type/bug Something isn't working comp/agent Core agent runtime: loop, agent_init, prompt builder, context-compression, responses endpoint tool/mcp MCP client and OAuth P2 Medium — degraded but workaround exists duplicate This issue or pull request already exists labels Jun 17, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Duplicate of #40951 — same fix for the MCP circuit-breaker-on-business-errors bug (issue #47851 / canonical #11113). This adds a _business_error flag and gates the breaker bump on it; #40951 (opened 2026-06-07) is the earliest open PR taking this approach, and #47898 / #47918 already track to it. Marking duplicate of #40951; related to issue #47851. Maintainers can pick the preferred implementation.

@kyssta-exe

Copy link
Copy Markdown
Contributor Author

Stale — 26-27 days without merge activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/agent Core agent runtime: loop, agent_init, prompt builder, context-compression, responses endpoint duplicate This issue or pull request already exists P2 Medium — degraded but workaround exists tool/mcp MCP client and OAuth type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MCP circuit breaker triggered by business errors (isError) instead of actual server failures

2 participants