zeroclaw-labs/zeroclaw · error

purge_session not supported by this memory backend

Error message

purge_session not supported by this memory backend

What it means

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

Source

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

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

    async fn purge_session(&self, session_id: &str) -> Result<usize> {
        if !self
            .capabilities
            .contains(MemoryCapabilities::PURGE_SESSION)
        {
            anyhow::bail!("purge_session not supported by this memory backend");
        }
        let session_id = session_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(store, &session_id)
                        .await,
                    "memory.purge-session 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, or delete the session's keys individually.

When it happens

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