Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(config): handle missing config file gracefully

Steven Enamakel704f31f06b3a
diff --git a/app/src/utils/tauriCommands/config.ts b/app/src/utils/tauriCommands/config.ts
index b6134af020..1695c236f6 100644
--- a/app/src/utils/tauriCommands/config.ts
+++ b/app/src/utils/tauriCommands/config.ts
@@ -848,9 +848,8 @@ export async function openhumanGetDashboardSettings(): Promise<CommandResponse<D
}
export async function openhumanGetSearchSettings(): Promise<CommandResponse<SearchSettings>> {
- if (!isTauri()) {
- throw new Error('Not running in Tauri');
- }
+ // Plain core RPC: works from the desktop shell and from a browser attached
+ // to the core (`pnpm dev:app:web`), so no Tauri guard.
return await callCoreRpc<CommandResponse<SearchSettings>>({
method: CORE_RPC_METHODS.configGetSearchSettings,
});
@@ -859,9 +858,8 @@ export async function openhumanGetSearchSettings(): Promise<CommandResponse<Sear
export async function openhumanUpdateSearchSettings(
update: SearchSettingsUpdate
): Promise<CommandResponse<SearchSettings>> {
- if (!isTauri()) {
- throw new Error('Not running in Tauri');
- }
+ // Plain core RPC: works from the desktop shell and from a browser attached
+ // to the core (`pnpm dev:app:web`), so no Tauri guard.
return await callCoreRpc<CommandResponse<SearchSettings>>({
method: CORE_RPC_METHODS.configUpdateSearchSettings,
params: update,