zeroclaw-labs/zeroclaw · error · anyhow::Error

ACP server requires the `channel-acp-server` feature

Error message

ACP server requires the `channel-acp-server` feature

What it means

Error "ACP server requires the `channel-acp-server` feature" thrown in zeroclaw-labs/zeroclaw.

Source

Thrown at src/main.rs:3933

                                .with_outcome(::zeroclaw_log::EventOutcome::Unknown)
                                .with_attrs(::serde_json::json!({"error": e.to_string()})),
                                "Failed to open ACP session store"
                            );
                        })
                        .ok();
                let server = if let Some(store) = store {
                    std::sync::Arc::new(channels::acp_server::AcpServer::new_with_store(
                        config, acp_config, store,
                    ))
                } else {
                    std::sync::Arc::new(channels::acp_server::AcpServer::new(config, acp_config))
                };
                server.run().await
            }
            #[cfg(not(feature = "channel-acp-server"))]
            {
                let _ = (max_sessions, session_timeout);
                anyhow::bail!("ACP server requires the `channel-acp-server` feature")
            }
        }

        Commands::Gateway { gateway_command } => {
            match gateway_command {
                Some(zeroclaw::GatewayCommands::Restart {
                    port,
                    host,
                    allow_degraded_security,
                }) => {
                    let _nag = gate_security_posture(&config, allow_degraded_security)?;
                    let (port, host) = resolve_gateway_addr(&config, port, host);
                    let addr = format!("{host}:{port}");
                    ::zeroclaw_log::record!(
                        INFO,
                        ::zeroclaw_log::Event::new(module_path!(), ::zeroclaw_log::Action::Note)
                            .with_attrs(::serde_json::json!({"addr": addr})),
                        "🔄 Restarting ZeroClaw Gateway on"

View on GitHub (pinned to 88bb9c8533)

Solutions

  1. Rebuild with the channel-acp-server feature: `cargo build --release --features channel-acp-server`.
  2. Use a build that includes the ACP server channel feature.

When it happens

Trigger: Thrown at src/main.rs:3933 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of zeroclaw-labs/zeroclaw@88bb9c8533 (2026-08-23). Data as JSON: /api/errors/ec6ae34894ef9ca3. Report an issue: GitHub.