Skip to content

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

feat(config): add computer settings update RPC method

Steven Enamakel76e81725031c
diff --git a/app/src/services/rpcMethods.ts b/app/src/services/rpcMethods.ts
index a8a7692c61..90cab2dcbd 100644
--- a/app/src/services/rpcMethods.ts
+++ b/app/src/services/rpcMethods.ts
@@ -23,6 +23,7 @@ export const CORE_RPC_METHODS = {
configUpdateAnalyticsSettings: 'openhuman.config_update_analytics_settings',
configUpdateAutonomySettings: 'openhuman.config_update_autonomy_settings',
configUpdateBrowserSettings: 'openhuman.config_update_browser_settings',
+ configUpdateComputerSettings: 'openhuman.config_update_computer_settings',
configUpdateComposioTriggerSettings: 'openhuman.config_update_composio_trigger_settings',
configUpdateLocalAiSettings: 'openhuman.config_update_local_ai_settings',
configUpdateMemorySettings: 'openhuman.config_update_memory_settings',
diff --git a/app/src/utils/tauriCommands/config.ts b/app/src/utils/tauriCommands/config.ts
index 8b0d3299e6..5dedd4b544 100644
--- a/app/src/utils/tauriCommands/config.ts
+++ b/app/src/utils/tauriCommands/config.ts
@@ -12,7 +12,7 @@ const log = debug('composio:rpc');
export interface ConfigSnapshot {
config: Record<string, unknown>;
- browser_billing_route?: 'direct_openrouter' | 'hosted';
+ browser_billing_route?: 'direct_openrouter' | 'hosted' | 'unavailable';
workspace_dir: string;
config_path: string;
}
@@ -412,6 +412,35 @@ export async function openhumanUpdateRuntimeSettings(
});
}
+/** TinyComputer's decision model family. */
+export type DecisionModel = 'jev' | 'open_jev' | 'sage';
+
+export interface ComputerSettings {
+ decision_model: DecisionModel;
+ sage_fast: boolean;
+ planner_model?: string | null;
+ rescue_model?: string | null;
+ max_rescues?: number | null;
+}
+
+/** Partial update; an empty model string restores the module default. */
+export interface ComputerSettingsUpdate {
+ decision_model?: DecisionModel;
+ sage_fast?: boolean;
+ planner_model?: string;
+ rescue_model?: string;
+ max_rescues?: number;
+}
+
+export async function openhumanUpdateComputerSettings(
+ update: ComputerSettingsUpdate
+): Promise<CommandResponse<ConfigSnapshot>> {
+ return await callCoreRpc<CommandResponse<ConfigSnapshot>>({
+ method: CORE_RPC_METHODS.configUpdateComputerSettings,
+ params: update,
+ });
+}
+
export async function openhumanUpdateBrowserSettings(
update: BrowserSettingsUpdate
): Promise<CommandResponse<ConfigSnapshot>> {