{"record":{"id":"ff77cdae86a8e11e","repo":"xai-org/grok-build","slug":"failed-to-load-config","errorCode":null,"errorMessage":"Failed to load config: {}","messagePattern":"Failed to load config: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/codegen/xai-grok-pager-bin/src/main.rs","lineNumber":1218,"sourceCode":"                env!(\"VERSION_WITH_COMMIT\"),\n                xai_grok_update::channel_label(),\n            )\n        );\n        if should_check_for_updates(no_auto_update) {\n            auto_update::run_update_if_available(\n                auto_update::UpdateRunMode::NonBlocking,\n                false,\n                auto_update::CliUpdateTrigger::AutoBackground,\n                update_config,\n            )\n            .await\n            .ok();\n        }\n    }\n    let remote_settings = join_early_prefetch(early_prefetch);\n    xai_grok_shell::util::config::set_remote_campaigns_from_settings(remote_settings.as_ref());\n    let raw_config = xai_grok_shell::config::load_effective_config()\n        .map_err(|e| anyhow::anyhow!(\"Failed to load config: {}\", e))?;\n    let mut agent_config = AgentConfig::new_from_toml_cfg(&raw_config)\n        .map_err(|e| anyhow::anyhow!(\"Failed to create agent config: {}\", e))?;\n    agent_config.default_model_override = agent_args.model.clone();\n    agent_config.reasoning_effort_override = agent_args\n        .reasoning_effort\n        .as_deref()\n        .and_then(xai_grok_shell::sampling::types::parse_canonical_effort_token);\n    let launch_yolo = xai_grok_shell::util::config::effective_yolo_for_launch(\n        agent_args.yolo,\n        permission_mode_flag.as_deref(),\n        None,\n    );\n    if let Some(warning) = launch_yolo.blocked_warning {\n        eprintln!(\"grok: {warning}\");\n    }\n    agent_config.default_yolo_mode = launch_yolo.yolo;\n    agent_config.default_auto_mode = xai_grok_shell::util::config::effective_auto_for_launch(\n        agent_args.yolo,","sourceCodeStart":1200,"sourceCodeEnd":1236,"githubUrl":"https://github.com/xai-org/grok-build/blob/bc7f02eddd3d84085849dc19ed216f11c23b0571/crates/codegen/xai-grok-pager-bin/src/main.rs#L1200-L1236","documentation":"Error \"Failed to load config: {}\" thrown in xai-org/grok-build.","triggerScenarios":"Thrown at crates/codegen/xai-grok-pager-bin/src/main.rs:1218 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"bc7f02eddd3d84085849dc19ed216f11c23b0571","analyzedAt":"2026-08-31T04:59:42.031Z","schemaVersion":2},"datasetVersion":"2026-08-31T09:17:48.483Z"}