Skip to content

[FR] Detailed error reporting and retry/fallback mechanism for AskAI and MCP server #1156

Description

@viniaraujo68

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Featureask_sbIssue related to Ask Sourcebot. https://docs.sourcebot.dev/docs/features/ask/overview

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions