Skip to content

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

fix(core-rpc): clear shell endpoint on cache reset

Steven Enamakel27f493d8ad98
diff --git a/app/src/services/coreRpcClient.ts b/app/src/services/coreRpcClient.ts
index e5fed93c7f..2b1a293f42 100644
--- a/app/src/services/coreRpcClient.ts
+++ b/app/src/services/coreRpcClient.ts
@@ -295,6 +295,7 @@ function dispatchAuthExpired(method: string, reason: AuthExpiredReason): void {
export function clearCoreRpcUrlCache(): void {
resolvedCoreRpcUrl = null;
resolvingCoreRpcUrl = null;
+ shellEndpoint = null;
}
/**
@@ -338,6 +339,7 @@ export function clearCoreRpcTokenCache(): void {
resolvedCoreRpcToken = null;
didResolveCoreRpcToken = false;
resolvingCoreRpcToken = null;
+ shellEndpoint = null;
coreRpcTokenInvalidationBus.dispatchEvent(new Event(CORE_RPC_TOKEN_INVALIDATED_EVENT));
}
const coreRpcLog = debug('core-rpc');