{"record":{"id":"cb0eaed9dba2114f","repo":"tinyhumansai/openhuman","slug":"missing-value-for-toolkit","errorCode":null,"errorMessage":"missing value for --toolkit","messagePattern":"missing value for --toolkit","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src/core/agent_cli.rs","lineNumber":183,"sourceCode":"        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;\n            }\n            \"--model\" | \"-m\" => {\n                out.model = Some(\n                    args.get(i + 1)\n                        .ok_or_else(|| anyhow!(\"missing value for --model\"))?\n                        .clone(),\n                );\n                i += 2;","sourceCodeStart":165,"sourceCodeEnd":201,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/core/agent_cli.rs#L165-L201","documentation":"Flag parsing in parse_dump_flags: `--toolkit`/`-t` was passed at the end of the argument list with no toolkit name value after it. The integrations_agent prompt is expanded per connected Composio toolkit, so a dangling --toolkit cannot be resolved and parsing aborts.","triggerScenarios":"Thrown at src/core/agent_cli.rs:183 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Add the toolkit slug after the flag: `--toolkit <slug>`","Omit the flag to expand all connected toolkits"],"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"}