tinyhumansai/openhuman · error · anyhow::Error

--namespace is required for clear

Error message

--namespace is required for clear

What it means

Error "--namespace is required for clear" thrown in tinyhumansai/openhuman.

Source

Thrown at src/core/memory_cli.rs:418

    while i < args.len() {
        match args[i].as_str() {
            "--namespace" | "-n" => {
                namespace = Some(next_arg(args, &mut i, "--namespace")?);
            }
            "-v" | "--verbose" => {
                verbose = true;
                i += 1;
            }
            "-h" | "--help" => {
                println!("Usage: openhuman memory clear --namespace <ns> [-v]");
                return Ok(());
            }
            other => return Err(anyhow::anyhow!("unknown clear arg: {other}")),
        }
    }

    let namespace =
        namespace.ok_or_else(|| anyhow::anyhow!("--namespace is required for clear"))?;

    crate::core::logging::init_for_cli_run(verbose, crate::core::logging::CliLogDefault::Global);

    let rt = tokio::runtime::Builder::new_multi_thread()
        .enable_all()
        .build()?;

    rt.block_on(async {
        let client = create_memory_client("clear").await?;
        client
            .clear_namespace(&namespace)
            .await
            .map_err(anyhow::Error::msg)?;
        eprintln!("[memory:cli] namespace '{namespace}' cleared");
        Ok::<_, anyhow::Error>(())
    })?;

    Ok(())

View on GitHub (pinned to a221052e0d)

When it happens

Trigger: Thrown at src/core/memory_cli.rs:418 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of tinyhumansai/openhuman@a221052e0d (2026-08-16). Data as JSON: /api/errors/f6009b36a0dc7e45. Report an issue: GitHub.