{"record":{"id":"32c5da303a488aef","repo":"tinyhumansai/openhuman","slug":"missing-value-for-agent","errorCode":null,"errorMessage":"missing value for --agent","messagePattern":"missing value for --agent","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src/core/agent_cli.rs","lineNumber":175,"sourceCode":"}\n\nfn parse_dump_flags(args: &[String]) -> Result<DumpFlags> {\n    let mut out = DumpFlags {\n        agent: None,\n        toolkit: None,\n        workspace: None,\n        model: None,\n        json: false,\n        with_tools: false,\n        verbose: false,\n    };\n    let mut i = 0usize;\n    while i < args.len() {\n        match args[i].as_str() {\n            \"--agent\" | \"-a\" => {\n                out.agent = Some(\n                    args.get(i + 1)\n                        .ok_or_else(|| anyhow!(\"missing value for --agent\"))?\n                        .clone(),\n                );\n                i += 2;\n            }\n            \"--toolkit\" | \"-t\" => {\n                out.toolkit = Some(\n                    args.get(i + 1)\n                        .ok_or_else(|| anyhow!(\"missing value for --toolkit\"))?\n                        .clone(),\n                );\n                i += 2;\n            }\n            \"--workspace\" | \"-w\" => {\n                out.workspace = Some(PathBuf::from(\n                    args.get(i + 1)\n                        .ok_or_else(|| anyhow!(\"missing value for --workspace\"))?,\n                ));\n                i += 2;","sourceCodeStart":157,"sourceCodeEnd":193,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/core/agent_cli.rs#L157-L193","documentation":"CLI argument parsing in parse_dump_flags: `--agent`/`-a` was passed with no following value, so the dump flags cannot record which agent to dump. Usage error, not a runtime failure; re-run with e.g. `--agent orchestrator`. Companion flags --toolkit/--workspace/--model have the same shape.","triggerScenarios":"Thrown at src/core/agent_cli.rs:175 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Supply the agent id: `--agent orchestrator`","Check `openhuman agent list` output for valid ids"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"749120085864ce16e0f273c7b86fac7740b39c5b","analyzedAt":"2026-08-17T21:21:45.363Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}