xai-org/grok-build · error
Failed to load config: {}
Error message
Failed to load config: {} What it means
Error "Failed to load config: {}" thrown in xai-org/grok-build.
Source
Thrown at crates/codegen/xai-grok-pager-bin/src/main.rs:1218
env!("VERSION_WITH_COMMIT"),
xai_grok_update::channel_label(),
)
);
if should_check_for_updates(no_auto_update) {
auto_update::run_update_if_available(
auto_update::UpdateRunMode::NonBlocking,
false,
auto_update::CliUpdateTrigger::AutoBackground,
update_config,
)
.await
.ok();
}
}
let remote_settings = join_early_prefetch(early_prefetch);
xai_grok_shell::util::config::set_remote_campaigns_from_settings(remote_settings.as_ref());
let raw_config = xai_grok_shell::config::load_effective_config()
.map_err(|e| anyhow::anyhow!("Failed to load config: {}", e))?;
let mut agent_config = AgentConfig::new_from_toml_cfg(&raw_config)
.map_err(|e| anyhow::anyhow!("Failed to create agent config: {}", e))?;
agent_config.default_model_override = agent_args.model.clone();
agent_config.reasoning_effort_override = agent_args
.reasoning_effort
.as_deref()
.and_then(xai_grok_shell::sampling::types::parse_canonical_effort_token);
let launch_yolo = xai_grok_shell::util::config::effective_yolo_for_launch(
agent_args.yolo,
permission_mode_flag.as_deref(),
None,
);
if let Some(warning) = launch_yolo.blocked_warning {
eprintln!("grok: {warning}");
}
agent_config.default_yolo_mode = launch_yolo.yolo;
agent_config.default_auto_mode = xai_grok_shell::util::config::effective_auto_for_launch(
agent_args.yolo,View on GitHub (pinned to bc7f02eddd)
When it happens
Trigger: Thrown at crates/codegen/xai-grok-pager-bin/src/main.rs:1218 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of xai-org/grok-build@bc7f02eddd (2026-08-31).
Data as JSON: /api/errors/ff77cdae86a8e11e.
Report an issue: GitHub.