Skip to main content

handle_explain

Function handle_explain 

Source
pub async fn handle_explain(
    __arg0: ConnectInfo<SocketAddr>,
    __arg1: Query<ExplainQuery>,
) -> impl IntoResponse
Expand description

Asynchronous endpoint called by the browser to fetch the AI error explanation.

Security: Validates that the target file resides within the project’s working directory and is a .rs or .toml file to prevent path-traversal attacks.