{"record":{"id":"bad4db62ee7890c6","repo":"tinyhumansai/openhuman","slug":"missing-selector-for-fill","errorCode":null,"errorMessage":"Missing 'selector' for fill","messagePattern":"Missing 'selector' for fill","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src/openhuman/tools/impl/browser/action_parser.rs","lineNumber":44,"sourceCode":"            depth: args\n                .get(\"depth\")\n                .and_then(serde_json::Value::as_u64)\n                .map(|d| u32::try_from(d).unwrap_or(u32::MAX)),\n        }),\n        \"click\" => {\n            let selector = args\n                .get(\"selector\")\n                .and_then(|v| v.as_str())\n                .ok_or_else(|| anyhow::anyhow!(\"Missing 'selector' for click\"))?;\n            Ok(BrowserAction::Click {\n                selector: selector.into(),\n            })\n        }\n        \"fill\" => {\n            let selector = args\n                .get(\"selector\")\n                .and_then(|v| v.as_str())\n                .ok_or_else(|| anyhow::anyhow!(\"Missing 'selector' for fill\"))?;\n            let value = args\n                .get(\"value\")\n                .and_then(|v| v.as_str())\n                .ok_or_else(|| anyhow::anyhow!(\"Missing 'value' for fill\"))?;\n            Ok(BrowserAction::Fill {\n                selector: selector.into(),\n                value: value.into(),\n            })\n        }\n        \"type\" => {\n            let selector = args\n                .get(\"selector\")\n                .and_then(|v| v.as_str())\n                .ok_or_else(|| anyhow::anyhow!(\"Missing 'selector' for type\"))?;\n            let text = args\n                .get(\"text\")\n                .and_then(|v| v.as_str())\n                .ok_or_else(|| anyhow::anyhow!(\"Missing 'text' for type\"))?;","sourceCodeStart":26,"sourceCodeEnd":62,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/tools/impl/browser/action_parser.rs#L26-L62","documentation":"Action-argument validation in parse_browser_action: the `fill` action was requested but its required `selector` argument is absent or not a string. One of the two guards for fill (the second checks `value`); fires before any browser automation runs.","triggerScenarios":"Thrown at src/openhuman/tools/impl/browser/action_parser.rs:44 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Include `selector` (and `value`) as strings in the fill args","Resubmit with both required parameters"],"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-14T00:17:10.932Z"}