[FR] Detailed error reporting and retry/fallback mechanism for AskAI and MCP server
Currently, when a request to the inference endpoint fails within the AskAI feature, the system returns a generic error stating that the operation failed. This lack of context makes debugging and troubleshooting difficult.
I would like to propose the following enhancements:
1- Detailed Error Reporting: Instead of masking the error, the system should surface the specific error details and status codes returned by the inference endpoint.
2- Retry and Fallback Mechanism: Introduce a configurable retry and/or fallback strategy for failed inference requests to improve resilience.
3- Scope Extension: Apply this same retry/fallback mechanism to the MCP server, as it currently suffers from the same generic failure behavior.
Implementing these changes will significantly improve the observability of the system and provide a more robust experience for both the AskAI feature and the MCP server.
Hey, was recently reviewing your comments and I had doubt that should the retry/fallback be configured per model separately or should be global across all models.
I think per model would be better, more specific
Ok, cool.
On Mon, Sep 14, 2026, 7:05 PM Vinicius Araujo @.***> wrote:
viniaraujo68 left a comment (sourcebot-dev/sourcebot#1156) https://github.com/sourcebot-dev/sourcebot/issues/1156#issuecomment-5664827346
I think per model would be better, more specific
— Reply to this email directly, view it on GitHub https://github.com/sourcebot-dev/sourcebot/issues/1156?email_source=notifications&email_token=BEFRZWLKURHJHTQECROEPDD5O7XZRA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKNRWGQ4DENZTGQ3KM4TFMFZW63VHMNXW23LFNZ2KKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#issuecomment-5664827346, or unsubscribe https://github.com/notifications/unsubscribe-auth/BEFRZWKDQVQH7OAF5Q44RPL5O7XZRAVCNFSNUABFKJSXA33TNF2G64TZHM4DINRXGI4TMNZVHNEXG43VMU5TIMZVGE2DSOJVGY2KC5QC . You are receiving this because you commented.Message ID: @.***>
I have kept separate per-model falback list , retries as 3 attempts and at last I am blocking/MCP only when the Streaming chat route also attempt model fallback.
Does that work? Let me know if any changes.
Yeah it does work, thanks!
I have raised the PR : https://github.com/sourcebot-dev/sourcebot/pull/1664 Please review it and let me know if changes.