diff --git a/src/core/webview/ClineProvider.ts b/src/core/webview/ClineProvider.ts index 20fb041..478669d 100644 --- a/src/core/webview/ClineProvider.ts +++ b/src/core/webview/ClineProvider.ts @@ -69,7 +69,7 @@ export class ClineProvider implements vscode.WebviewViewProvider { private view?: vscode.WebviewView | vscode.WebviewPanel private cline?: Cline private workspaceTracker?: WorkspaceTracker - private latestAnnouncementId = "oct-8-2024" // update to some unique identifier when we add a new announcement + private latestAnnouncementId = "oct-9-2024" // update to some unique identifier when we add a new announcement constructor(readonly context: vscode.ExtensionContext, private readonly outputChannel: vscode.OutputChannel) { this.outputChannel.appendLine("ClineProvider instantiated") diff --git a/webview-ui/src/components/chat/Announcement.tsx b/webview-ui/src/components/chat/Announcement.tsx index b659ec2..92b1432 100644 --- a/webview-ui/src/components/chat/Announcement.tsx +++ b/webview-ui/src/components/chat/Announcement.tsx @@ -12,6 +12,7 @@ interface AnnouncementProps { You must update the latestAnnouncementId in ClineProvider for new announcements to show to users. This new id will be compared with whats in state for the 'last announcement shown', and if it's different then the announcement will render. As soon as an announcement is shown, the id will be updated in state. This ensures that announcements are not shown more than once, even if the user doesn't close it themselves. */ const Announcement = ({ version, hideAnnouncement }: AnnouncementProps) => { + const minorVersion = version.split(".").slice(0, 2).join(".") // 2.0.0 -> 2.0 return (
New name! Meet Cline, an AI assistant that can use your CLI aNd{" "} @@ -37,18 +38,18 @@ const Announcement = ({ version, hideAnnouncement }: AnnouncementProps) => {
- More details about the changes + benchmarks{" "}
-