Skip to content

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

fix(coreRpcClient): correct error handling for RPC connection failures

Steven Enamakelfbb777b8bd9b
diff --git a/app/src/services/coreRpcClient.ts b/app/src/services/coreRpcClient.ts
index 3575f5248b..7e3e636884 100644
--- a/app/src/services/coreRpcClient.ts
+++ b/app/src/services/coreRpcClient.ts
@@ -376,11 +376,10 @@ function coreRpcErrorMessage(err: unknown): string {
* their existing fallback behaviour.
*/
async function resolveShellEndpoint(): Promise<{ url: string; token: string } | null> {
- console.log('DBG resolveShellEndpoint start isTauri=', isTauri(), 'shellEndpoint=', !!shellEndpoint, 'INVOKE?');
if (shellEndpoint) return shellEndpoint;
if (!isTauri()) return null;
try {
- const endpoint = await invoke<{ url: string; token: string }>('core_rpc_endpoint'); console.log('DBG invoke endpoint=', JSON.stringify(endpoint));
+ const endpoint = await invoke<{ url: string; token: string }>('core_rpc_endpoint');
shellEndpoint = { url: endpoint?.url ?? '', token: endpoint?.token ?? '' };
return shellEndpoint;
} catch (err) {