// SPDX-FileCopyrightText: 2026 Andrei G <bug-ops>
// SPDX-License-Identifier: MIT OR Apache-2.0
//! Handler for `session/cancel` (ACP notification, no response).
use std::sync::Arc;
use agent_client_protocol as acp;
use crate::agent::ZephAcpAgentState;
/// Handle an ACP `cancel` notification.
pub(crate) async fn handle_cancel(
notif: acp::schema::CancelNotification,
_cx: acp::ConnectionTo<acp::Client>,
state: Arc<ZephAcpAgentState>,
) -> acp::Result<()> {
state.do_cancel(notif).await
}