Skip to content

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

fix(api): handle missing optional fields in RPC method responses

Steven Enamakeldb4f7479aba1
diff --git a/app/src/services/rpcMethods.ts b/app/src/services/rpcMethods.ts
index cc2a8362f0..8c382b8c2c 100644
--- a/app/src/services/rpcMethods.ts
+++ b/app/src/services/rpcMethods.ts
@@ -42,17 +42,9 @@ export const CORE_RPC_METHODS = {
memoryEnginesList: 'openhuman.memory_engines_list',
inferenceAgentChat: 'openhuman.inference_agent_chat',
inferenceAgentChatSimple: 'openhuman.inference_agent_chat_simple',
- inferenceApplyPreset: 'openhuman.inference_apply_preset',
- inferenceAssetsStatus: 'openhuman.inference_assets_status',
inferenceDiagnostics: 'openhuman.inference_diagnostics',
- inferenceDeviceProfile: 'openhuman.inference_device_profile',
- inferenceDownloadAsset: 'openhuman.inference_download_asset',
- inferenceDownloadsProgress: 'openhuman.inference_downloads_progress',
inferenceGetClientConfig: 'openhuman.inference_get_client_config',
- inferenceInstallPiper: 'openhuman.inference_install_piper',
inferenceListModels: 'openhuman.inference_list_models',
- inferencePiperInstallStatus: 'openhuman.inference_piper_install_status',
- inferencePresets: 'openhuman.inference_presets',
inferenceTestConnection: 'openhuman.inference_test_connection',
inferenceTranscribe: 'openhuman.inference_transcribe',
inferenceTranscribeBytes: 'openhuman.inference_transcribe_bytes',
@@ -119,21 +111,12 @@ export const LEGACY_METHOD_ALIASES: Record<string, CoreRpcMethod> = {
'openhuman.workspace_onboarding_flag_set': CORE_RPC_METHODS.configWorkspaceOnboardingFlagSet,
'openhuman.local_ai_agent_chat': CORE_RPC_METHODS.inferenceAgentChat,
'openhuman.local_ai_agent_chat_simple': CORE_RPC_METHODS.inferenceAgentChatSimple,
- 'openhuman.local_ai_apply_preset': CORE_RPC_METHODS.inferenceApplyPreset,
- 'openhuman.local_ai_assets_status': CORE_RPC_METHODS.inferenceAssetsStatus,
- 'openhuman.local_ai_device_profile': CORE_RPC_METHODS.inferenceDeviceProfile,
'openhuman.local_ai_diagnostics': CORE_RPC_METHODS.inferenceDiagnostics,
- 'openhuman.local_ai_download_asset': CORE_RPC_METHODS.inferenceDownloadAsset,
- 'openhuman.local_ai_downloads_progress': CORE_RPC_METHODS.inferenceDownloadsProgress,
- 'openhuman.local_ai_install_piper': CORE_RPC_METHODS.inferenceInstallPiper,
- 'openhuman.local_ai_piper_install_status': CORE_RPC_METHODS.inferencePiperInstallStatus,
- 'openhuman.local_ai_presets': CORE_RPC_METHODS.inferencePresets,
'openhuman.local_ai_test_connection': CORE_RPC_METHODS.inferenceTestConnection,
'openhuman.local_ai_transcribe': CORE_RPC_METHODS.inferenceTranscribe,
'openhuman.local_ai_transcribe_bytes': CORE_RPC_METHODS.inferenceTranscribeBytes,
'openhuman.local_ai_tts': CORE_RPC_METHODS.inferenceTts,
'openhuman.providers_list_models': CORE_RPC_METHODS.inferenceListModels,
- 'openhuman.inference_embed': CORE_RPC_METHODS.embeddingsEmbed,
health_snapshot: CORE_RPC_METHODS.healthSnapshot,
// Dotted / bare health probes from older clients and SDK callers (#3566,
// Sentry CORE-2C). No distinct status/get handler exists — the snapshot