Skip to main content

pre_dispatch_read_for_agent

Function pre_dispatch_read_for_agent 

Source
pub fn pre_dispatch_read_for_agent(
    path: &str,
    requested_mode: &str,
    task: Option<&str>,
    project_root: Option<&str>,
    agent_id: Option<&str>,
    fresh: bool,
) -> PreDispatchResult
Expand description

fresh is the caller’s explicit escape hatch (#1588). Bounce-prevention and intent-target exist to stop an agent from drifting into a compressed view it will immediately re-read in full; neither should be able to pin a file to full forever. A caller who passes fresh=true has said, in the request itself, that they want this view recomputed — honour it, or those modes are simply unreachable for the rest of the session.