tinyhumansai/openhuman · error
error while building tauri application
Error message
error while building tauri application
What it means
Panic payload on tauri::Builder::...run() in the desktop shell's run(): the builder failed while registering the generate_handler! command set (core RPC relay, workspace_paths, companion, mcp_commands, ...) or initializing plugins/windows. It aborts the process at startup — the message is the expect string on the Builder::run result.
Source
Thrown at app/src-tauri/src/lib.rs:3344
workspace_paths::reveal_workspace_path,
workspace_paths::preview_workspace_text,
workspace_paths::resolve_workspace_absolute_path,
companion_commands::register_companion_hotkey,
companion_commands::unregister_companion_hotkey,
companion_commands::companion_activate,
companion::companion_start_session,
companion::companion_stop_session,
companion::companion_status,
companion::companion_config_get,
companion::companion_config_set,
mcp_commands::mcp_resolve_binary_path,
mcp_commands::mcp_open_client_config,
loopback_oauth::start_loopback_oauth_listener,
loopback_oauth::stop_loopback_oauth_listener,
claude_code::claude_code_login_launch
])
.build(tauri::generate_context!())
.expect("error while building tauri application")
.run(move |app_handle, event| match event {
RunEvent::Ready => {
log::info!("[app] RunEvent::Ready — GTK initialized, setting up tray");
if let Err(err) = setup_tray(app_handle) {
log::warn!(
"[tray] failed to setup tray icon (non-fatal in headless environment): {err}"
);
}
}
// Intercept the main window's close request on macOS so the user
// can re-open the app from the tray icon. Letting the OS destroy
// the webview makes `get_webview_window("main")` return None on
// the next tray-click and surfaces as `[tray] failed to show main
// window from tray click: main window not found`
// (OPENHUMAN-TAURI-2X — 21 events, Windows only).
//
// macOS: hide the whole application on close instead of
// destroying the window. `AppHandle::hide()` callsView on GitHub (pinned to 7491200858)
Solutions
- Read the error printed before the panic to identify which plugin or command registration failed
- Verify required capabilities (deep-link scheme registration, single-instance lock) are available
- Reproduce with `pnpm dev:app` to get the full builder error chain
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at app/src-tauri/src/lib.rs:3344 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of tinyhumansai/openhuman@7491200858 (2026-08-17).
Data as JSON: /api/errors/0b5e6339a245d294.
Report an issue: GitHub.