diff --git a/core/config/ConfigHandler.ts b/core/config/ConfigHandler.ts index 48ef2e0e4..97f12d0e6 100644 --- a/core/config/ConfigHandler.ts +++ b/core/config/ConfigHandler.ts @@ -134,6 +134,7 @@ export class ConfigHandler { { ...assistant.configResult, config: renderedConfig }, assistant.ownerSlug, assistant.packageSlug, + assistant.configResult.config?.version ?? "latest", this.controlPlaneClient, this.ide, this.ideSettingsPromise, diff --git a/core/config/ProfileLifecycleManager.ts b/core/config/ProfileLifecycleManager.ts index 88fc387c5..2d3f57da0 100644 --- a/core/config/ProfileLifecycleManager.ts +++ b/core/config/ProfileLifecycleManager.ts @@ -1,4 +1,8 @@ -import { ConfigResult, ConfigValidationError } from "@continuedev/config-yaml"; +import { + ConfigResult, + ConfigValidationError, + FullSlug, +} from "@continuedev/config-yaml"; import { BrowserSerializedContinueConfig, ContinueConfig, @@ -9,6 +13,8 @@ import { finalToBrowserConfig } from "./load.js"; import { IProfileLoader } from "./profile/IProfileLoader.js"; export interface ProfileDescription { + fullSlug: FullSlug; + profileType: string; title: string; id: string; errors: ConfigValidationError[] | undefined; diff --git a/core/config/profile/ControlPlaneProfileLoader.ts b/core/config/profile/ControlPlaneProfileLoader.ts index 38c7fb389..dfb111e1f 100644 --- a/core/config/profile/ControlPlaneProfileLoader.ts +++ b/core/config/profile/ControlPlaneProfileLoader.ts @@ -31,6 +31,12 @@ export default class ControlPlaneProfileLoader implements IProfileLoader { ) { this.description = { id: workspaceId, + profileType: "control-plane", + fullSlug: { + ownerSlug: "", + packageSlug: "", + versionSlug: "", + }, title: workspaceTitle, errors: undefined, }; diff --git a/core/config/profile/LocalProfileLoader.ts b/core/config/profile/LocalProfileLoader.ts index 644e97069..bcc82408d 100644 --- a/core/config/profile/LocalProfileLoader.ts +++ b/core/config/profile/LocalProfileLoader.ts @@ -10,6 +10,12 @@ export default class LocalProfileLoader implements IProfileLoader { static ID = "local"; description: ProfileDescription = { id: LocalProfileLoader.ID, + profileType: LocalProfileLoader.ID, + fullSlug: { + ownerSlug: "", + packageSlug: "", + versionSlug: "", + }, title: "Local Config", errors: undefined, }; diff --git a/core/config/profile/PlatformProfileLoader.ts b/core/config/profile/PlatformProfileLoader.ts index 5319097b3..92e945630 100644 --- a/core/config/profile/PlatformProfileLoader.ts +++ b/core/config/profile/PlatformProfileLoader.ts @@ -29,6 +29,7 @@ export default class PlatformProfileLoader implements IProfileLoader { private configResult: ConfigResult, private readonly ownerSlug: string, private readonly packageSlug: string, + versionSlug: string, private readonly controlPlaneClient: ControlPlaneClient, private readonly ide: IDE, private ideSettingsPromise: Promise, @@ -37,7 +38,13 @@ export default class PlatformProfileLoader implements IProfileLoader { ) { this.description = { id: `${ownerSlug}/${packageSlug}`, - title: `${ownerSlug}/${packageSlug}`, + profileType: "platform", + fullSlug: { + ownerSlug, + packageSlug, + versionSlug, + }, + title: `${ownerSlug}/${packageSlug}@${versionSlug}`, errors: configResult.errors, }; diff --git a/gui/src/components/modelSelection/platform/AssistantAndModelSelect.tsx b/gui/src/components/modelSelection/platform/AssistantAndModelSelect.tsx index 4d0df15e7..c33c3a586 100644 --- a/gui/src/components/modelSelection/platform/AssistantAndModelSelect.tsx +++ b/gui/src/components/modelSelection/platform/AssistantAndModelSelect.tsx @@ -155,7 +155,7 @@ function AssistantAndModelSelect() { aria-hidden="true" /> - {selectedProfile?.title || "Select assistant"} + {selectedProfile?.fullSlug.packageSlug || "Select assistant"} {" / "} {modelSelectTitle(defaultModel) || "Select model"}