diff --git a/vscode/CHANGELOG.md b/vscode/CHANGELOG.md index 65680d119d7..79694eddb11 100644 --- a/vscode/CHANGELOG.md +++ b/vscode/CHANGELOG.md @@ -10,6 +10,8 @@ This is a log of all notable changes to Cody for VS Code. [Unreleased] changes a ### Changed +- Chat: Welcome message is only shown on new chat panel. [pull/3341](https://github.com/sourcegraph/cody/pull/3341) + ## [1.8.1] ### Added diff --git a/vscode/test/e2e/command-menu.test.ts b/vscode/test/e2e/command-menu.test.ts index 9dd1478e766..55ff5d8cc90 100644 --- a/vscode/test/e2e/command-menu.test.ts +++ b/vscode/test/e2e/command-menu.test.ts @@ -33,7 +33,7 @@ test('Start a new chat from Cody Command Menu', async ({ page, sidebar }) => { // the question should show up in the chat panel on submit const chatPanel = page.frameLocator('iframe.webview').last().frameLocator('iframe') - await chatPanel.getByText('new chat submitted from command menu').click() + await chatPanel.getByText('hello from the assistant').hover() const expectedEvents = [ 'CodyVSCodeExtension:menu:command:default:clicked', diff --git a/vscode/test/e2e/update-notice.test.ts b/vscode/test/e2e/update-notice.test.ts index 24582af6acb..3a9ca6710e5 100644 --- a/vscode/test/e2e/update-notice.test.ts +++ b/vscode/test/e2e/update-notice.test.ts @@ -56,10 +56,11 @@ test('existing installs should show the update toast when the last dismissed ver await page.locator('*[aria-label="Tab actions"] *[aria-label~="Close"]').click() // Reopen the chat; the update notice should be visible. + // Welcome message is removed. await chatHistoryEntry.click() chatFrame = page.frameLocator('iframe.webview').last().frameLocator('iframe') const introChat = chatFrame.getByText(greetingChatText) - await expect(introChat).toBeVisible() + await expect(introChat).not.toBeVisible() const chatNotice = chatFrame.getByText(updateToastText) await expect(chatNotice).toBeVisible() diff --git a/vscode/webviews/Chat.tsx b/vscode/webviews/Chat.tsx index 4790eea9ab6..a1cb8837310 100644 --- a/vscode/webviews/Chat.tsx +++ b/vscode/webviews/Chat.tsx @@ -743,7 +743,8 @@ export const Chat: React.FunctionComponent
{ {isItemBeingEdited &&
}