{"record":{"id":"7d7823fc89e2953f","repo":"openai/codex","slug":"helperrequestargsfailed","errorCode":"HelperRequestArgsFailed","errorMessage":"expected payload argument","messagePattern":"expected payload argument","errorType":"error_code","errorClass":"SetupFailure","httpStatus":null,"severity":"error","filePath":"codex-rs/windows-sandbox-rs/src/bin/setup_main/win.rs","lineNumber":442,"sourceCode":"            let sbx_dir = sandbox_dir(Path::new(&codex_home));\n            let _ = std::fs::create_dir_all(&sbx_dir);\n            if let Some(mut f) = log_writer(&sbx_dir) {\n                let _ = writeln!(\n                    f,\n                    \"[{}] top-level error: {}\",\n                    chrono::Utc::now().to_rfc3339(),\n                    e\n                );\n            }\n        }\n    }\n    ret\n}\n\nfn real_main() -> Result<()> {\n    let mut args = std::env::args().collect::<Vec<_>>();\n    if args.len() != 2 {\n        return Err(anyhow::Error::new(SetupFailure::new(\n            SetupErrorCode::HelperRequestArgsFailed,\n            \"expected payload argument\",\n        )));\n    }\n    let payload_b64 = args.remove(1);\n    let payload_json = BASE64.decode(payload_b64).map_err(|err| {\n        anyhow::Error::new(SetupFailure::new(\n            SetupErrorCode::HelperRequestArgsFailed,\n            format!(\"failed to decode payload b64: {err}\"),\n        ))\n    })?;\n    let payload: Payload = serde_json::from_slice(&payload_json).map_err(|err| {\n        anyhow::Error::new(SetupFailure::new(\n            SetupErrorCode::HelperRequestArgsFailed,\n            format!(\"failed to parse payload json: {err}\"),\n        ))\n    })?;\n    if payload.version != SETUP_VERSION {","sourceCodeStart":424,"sourceCodeEnd":460,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/windows-sandbox-rs/src/bin/setup_main/win.rs#L424-L460","documentation":"Sentinel argument-shape error: the setup binary was invoked without exactly one command-line argument (the base64/JSON payload). argv.len() != 2, so no payload exists to parse and real_main refuses to continue.","triggerScenarios":"Thrown at codex-rs/windows-sandbox-rs/src/bin/setup_main/win.rs:442 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Invoke the setup binary with exactly one argument containing the JSON payload string","Check the spawning code path that constructs the command line for missing or extra (e.g. quoted-split) arguments","Regenerate the launch configuration rather than hand-editing the command line"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}