Skip to main content

compile_session_start_bundle

Function compile_session_start_bundle 

Source
pub fn compile_session_start_bundle(
    conn: &Connection,
    request: &ContextRequest,
    cwd: &str,
    current_branch: Option<&str>,
    enrichment_available: bool,
) -> Result<ContextBundle>
Expand description

Compile a SessionStart bundle from the database.

Returns Err only when the plan itself cannot be compiled (an invalid request). A canonical load failure is not an error return: it produces a Blocked bundle so the failure travels with the audit instead of being swallowed or mistaken for an empty project.