acp_utils/client/
error.rs1#[derive(Debug, thiserror::Error)]
3pub enum AcpClientError {
4 #[error("invalid agent command: {0}")]
6 InvalidAgentCommand(#[source] agent_client_protocol::Error),
7
8 #[error("ACP connection failed before handshake: {0}")]
10 ConnectFailed(#[source] agent_client_protocol::Error),
11
12 #[error("agent subprocess crashed: {0}")]
14 AgentCrashed(String),
15
16 #[error("ACP protocol error: {0}")]
19 Protocol(#[source] agent_client_protocol::Error),
20
21 #[error("ACP client is busy with an in-flight prompt")]
23 Busy,
24}