zeroclaw-labs/zeroclaw · error
purge_agent not supported by this memory backend
Error message
purge_agent not supported by this memory backend
What it means
Error "purge_agent not supported by this memory backend" thrown in zeroclaw-labs/zeroclaw.
Source
Thrown at crates/zeroclaw-plugins/src/wasm_memory.rs:414
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)
}
)
}
async fn purge_agent(&self, agent_alias: &str) -> Result<usize> {
if !self.capabilities.contains(MemoryCapabilities::PURGE_AGENT) {
anyhow::bail!("purge_agent not supported by this memory backend");
}
let agent_alias = agent_alias.to_string();
call_plugin!(
self,
async move |store: &mut Store<PluginState>, bindings: &mut MemoryPlugin| {
let out = wt(
bindings
.zeroclaw_plugin_memory()
.call_purge_agent(store, &agent_alias)
.await,
"memory.purge-agent trapped",
)?
.map_err(anyhow::Error::msg)?;
Ok(out as usize)
}
)
}
View on GitHub (pinned to 88bb9c8533)
Solutions
- Use a memory backend that implements purge_agent, or delete the agent's keys individually.
When it happens
Trigger: Thrown at crates/zeroclaw-plugins/src/wasm_memory.rs:414 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/56774b54bcbeb539.
Report an issue: GitHub.