zeroclaw-labs/zeroclaw · error

purge_session_for_agent not supported by this memory backend

Error message

purge_session_for_agent not supported by this memory backend

What it means

Error "purge_session_for_agent not supported by this memory backend" thrown in zeroclaw-labs/zeroclaw.

Source

Thrown at crates/zeroclaw-plugins/src/wasm_memory.rs:393

                let out = wt(
                    bindings
                        .zeroclaw_plugin_memory()
                        .call_purge_session(store, &session_id)
                        .await,
                    "memory.purge-session trapped",
                )?
                .map_err(anyhow::Error::msg)?;
                Ok(out as usize)
            }
        )
    }

    async fn purge_session_for_agent(&self, session_id: &str, agent_id: &str) -> Result<usize> {
        if !self
            .capabilities
            .contains(MemoryCapabilities::PURGE_SESSION_FOR_AGENT)
        {
            anyhow::bail!("purge_session_for_agent not supported by this memory backend");
        }
        let (session_id, agent_id) = (session_id.to_string(), agent_id.to_string());
        call_plugin!(
            self,
            async move |store: &mut Store<PluginState>, bindings: &mut MemoryPlugin| {
                let out = wt(
                    bindings
                        .zeroclaw_plugin_memory()
                        .call_purge_session_for_agent(store, &session_id, &agent_id)
                        .await,
                    "memory.purge-session-for-agent trapped",
                )?
                .map_err(anyhow::Error::msg)?;
                Ok(out as usize)
            }
        )
    }

View on GitHub (pinned to 88bb9c8533)

Solutions

  1. Use a memory backend that implements purge_session_for_agent, or delete the keys individually.

When it happens

Trigger: Thrown at crates/zeroclaw-plugins/src/wasm_memory.rs:393 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/2cf795d4a65c43c0. Report an issue: GitHub.