tinyhumansai/openhuman · error
learning_reset_cache
Error message
learning_reset_cache: {e:#} What it means
learning_reset_cache (Dangerous permission) failed while deleting non-pinned facets via the module's reset path. The reset is irreversible by design; this error means the wipe did not fully complete and some learned state may remain.
Solutions
- Retry the reset — already-deleted facets are gone and skipped on rerun
- Check the underlying memory driver error for the real failure
- Verify with learning_cache_stats that only pinned facets remain afterwards
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at src/openhuman/agent/learning/tools.rs:488 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of tinyhumansai/openhuman@7491200858 (2026-08-17).
Data as JSON: /api/errors/77e9c54b584289b6.
Report an issue: GitHub.
Appendix: source
Thrown at src/openhuman/agent/learning/tools.rs:488
only user-pinned facets. Irreversible. Only use when the user wants to \
wipe the assistant's learned model of them."
}
fn parameters_schema(&self) -> serde_json::Value {
json!({ "type": "object", "properties": {} })
}
fn permission_level(&self) -> PermissionLevel {
PermissionLevel::Dangerous
}
async fn execute(&self, _args: serde_json::Value) -> anyhow::Result<ToolResult> {
log::debug!("[tool][learning] reset_cache invoked");
let cache = get_cache().await?;
let (deleted, pinned_preserved) =
crate::openhuman::agent::learning::cache::reset_non_pinned(&cache)
.await
.map_err(|e| anyhow::anyhow!("learning_reset_cache: {e:#}"))?;
Ok(ToolResult::success(serde_json::to_string(&json!({
"deleted": deleted,
"pinned_preserved": pinned_preserved,
}))?))
}
}
/// Write PROFILE.md from supplied markdown. Default-OFF.
pub struct LearningSaveProfileTool;
#[async_trait]
impl Tool for LearningSaveProfileTool {
fn name(&self) -> &str {
"learning_save_profile"
}
fn description(&self) -> &str {
"Write the supplied `markdown` to PROFILE.md in the workspace (the \View on GitHub (pinned to 7491200858)