chat-ui
156bba47 - fix(mcp): communicate tool errors to LLM to prevent hallucinated success (#2036)

Commit
25 days ago
fix(mcp): communicate tool errors to LLM to prevent hallucinated success (#2036) When MCP tool calls fail (e.g., timeout), the error was shown in the UI but not sent to the LLM. This caused the LLM to hallucinate success because it never received feedback about the failure. Now error messages are included in toolMessages so the LLM can acknowledge failures and respond appropriately.
Author
Parents
Loading