Hmbown/CodeWhale · error
Failed to open browser automatically: {err}
Error message
Failed to open browser automatically: {err} What it means
When ConfigUiMode::Web starts the browser-based config editor and automatic browser launch fails, a System message with this text is added to the transcript. The web editor itself is running; only the convenience launch failed, so the user is told to open the printed URL themselves — a UI-level degradation, not a config-editor failure.
Source
Thrown at crates/tui/src/tui/ui/apply.rs:1647
});
app.status_message = Some(outcome.final_message);
}
Err(err) => {
app.add_message(HistoryCell::System {
content: format!("Config UI failed: {err}"),
});
}
}
}
ConfigUiMode::Web => {
#[cfg(feature = "web")]
{
let session = config_ui::start_web_editor(app, config).await?;
let url = format!("http://{}", session.addr);
let open_err = config_ui::open_browser(&url).err();
if let Some(err) = open_err {
app.add_message(HistoryCell::System {
content: format!("Failed to open browser automatically: {err}"),
});
}
app.status_message = Some(format!("web ui listen on: {url}"));
*web_config_session = Some(session);
}
#[cfg(not(feature = "web"))]
{
app.add_message(HistoryCell::System {
content: "This build does not include the web config UI.".to_string(),
});
}
}
},
AppAction::OpenConfigView => {
if app.view_stack.top_kind() != Some(ModalKind::Config) {
app.view_stack.push(ConfigView::new_for_app(app));
}
}View on GitHub (pinned to 0c42157ee5)
Solutions
- Open the config UI URL shown in the transcript manually
- Install or fix the default-browser handler (xdg-open/open) if auto-launch is wanted
- Ignore if you only need the server; the editor remains reachable at the URL
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at crates/tui/src/tui/ui/apply.rs:1647 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of Hmbown/CodeWhale@0c42157ee5 (2026-08-20).
Data as JSON: /api/errors/59a8bcfc8fdd1271.
Report an issue: GitHub.