From 8a822edbfdc03f67b7b6ef99e4df138ab477ad7f Mon Sep 17 00:00:00 2001 From: Nate Date: Sun, 8 Jun 2025 18:33:09 -0700 Subject: [PATCH] small fixes for free trial onboarding --- core/config/load.ts | 1 + core/protocol/passThrough.ts | 1 + .../components/modelSelection/platform/FreeTrialButton.tsx | 6 +++--- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/core/config/load.ts b/core/config/load.ts index 9bf8d1466..fe0c4de61 100644 --- a/core/config/load.ts +++ b/core/config/load.ts @@ -640,6 +640,7 @@ function llmToSerializedModelDescription(llm: ILLM): ModelDescription { capabilities: llm.capabilities, roles: llm.roles, configurationStatus: llm.getConfigurationStatus(), + apiKeyLocation: llm.apiKeyLocation, }; } diff --git a/core/protocol/passThrough.ts b/core/protocol/passThrough.ts index 51c8f4a78..36cb9b485 100644 --- a/core/protocol/passThrough.ts +++ b/core/protocol/passThrough.ts @@ -64,6 +64,7 @@ export const WEBVIEW_TO_CORE_PASS_THROUGH: (keyof ToCoreFromWebviewProtocol)[] = "isItemTooBig", "process/markAsBackgrounded", "process/isBackgrounded", + "controlPlane/getFreeTrialStatus", ]; // Message types to pass through from core to webview diff --git a/gui/src/components/modelSelection/platform/FreeTrialButton.tsx b/gui/src/components/modelSelection/platform/FreeTrialButton.tsx index 71f529e12..c34d0abce 100644 --- a/gui/src/components/modelSelection/platform/FreeTrialButton.tsx +++ b/gui/src/components/modelSelection/platform/FreeTrialButton.tsx @@ -114,7 +114,7 @@ export default function FreeTrialButton({ { await ideMessenger.request("controlPlane/openUrl", { - path: "/pricing", + path: "pricing", orgSlug: undefined, }); }} @@ -141,7 +141,7 @@ export default function FreeTrialButton({ className="flex-1" onClick={async () => { await ideMessenger.request("controlPlane/openUrl", { - path: "/setup-models", + path: "setup-models", orgSlug: undefined, }); }} @@ -152,7 +152,7 @@ export default function FreeTrialButton({ className="flex-1" onClick={async () => { await ideMessenger.request("controlPlane/openUrl", { - path: "/settings/billing", + path: "settings/billing", orgSlug: undefined, }); }}