Skip to main content

complete_if_running

Function complete_if_running 

Source
fn complete_if_running(
    store: &Store,
    block_id: &str,
    tool_use_id: &str,
    status: BackgroundTaskStatus,
    at_ms: i64,
) -> bool
Expand description

Complete tool_use_id’s row if it is still running. The CLI usually reports an end twice (task_updated, then task_notification); only a still-running row is completed, so the first end time stands and subscribers hear it once.