{"record":{"id":"0b5e6339a245d294","repo":"tinyhumansai/openhuman","slug":"error-while-building-tauri-application","errorCode":null,"errorMessage":"error while building tauri application","messagePattern":"error while building tauri application","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"app/src-tauri/src/lib.rs","lineNumber":3344,"sourceCode":"            workspace_paths::reveal_workspace_path,\n            workspace_paths::preview_workspace_text,\n            workspace_paths::resolve_workspace_absolute_path,\n            companion_commands::register_companion_hotkey,\n            companion_commands::unregister_companion_hotkey,\n            companion_commands::companion_activate,\n            companion::companion_start_session,\n            companion::companion_stop_session,\n            companion::companion_status,\n            companion::companion_config_get,\n            companion::companion_config_set,\n            mcp_commands::mcp_resolve_binary_path,\n            mcp_commands::mcp_open_client_config,\n            loopback_oauth::start_loopback_oauth_listener,\n            loopback_oauth::stop_loopback_oauth_listener,\n            claude_code::claude_code_login_launch\n        ])\n        .build(tauri::generate_context!())\n        .expect(\"error while building tauri application\")\n        .run(move |app_handle, event| match event {\n            RunEvent::Ready => {\n                log::info!(\"[app] RunEvent::Ready — GTK initialized, setting up tray\");\n                if let Err(err) = setup_tray(app_handle) {\n                    log::warn!(\n                    \"[tray] failed to setup tray icon (non-fatal in headless environment): {err}\"\n                );\n                }\n            }\n            // Intercept the main window's close request on macOS so the user\n            // can re-open the app from the tray icon. Letting the OS destroy\n            // the webview makes `get_webview_window(\"main\")` return None on\n            // the next tray-click and surfaces as `[tray] failed to show main\n            // window from tray click: main window not found`\n            // (OPENHUMAN-TAURI-2X — 21 events, Windows only).\n            //\n            // macOS: hide the whole application on close instead of\n            // destroying the window. `AppHandle::hide()` calls","sourceCodeStart":3326,"sourceCodeEnd":3362,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/app/src-tauri/src/lib.rs#L3326-L3362","documentation":"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.","triggerScenarios":"Thrown at app/src-tauri/src/lib.rs:3344 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"749120085864ce16e0f273c7b86fac7740b39c5b","analyzedAt":"2026-08-17T21:21:45.363Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}