Skip to content

Commit 4c0d3d0

Browse files
authored
Fix chat not retaining history when interaction is through onboarding tab type (#5193)
When tab type is 'welcome', type is not overwritten with correct tab type after user prompt
1 parent 29b1a6c commit 4c0d3d0

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type" : "bugfix",
3+
"description" : "Fix chat not retaining history when interaction is through onboarding tab type (#5189)"
4+
}

plugins/amazonq/mynah-ui/src/mynah-ui/ui/storages/tabsStorage.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,10 @@ export class TabsStorage {
104104

105105
public updateTabTypeFromUnknown(tabID: string, tabType: TabType) {
106106
const currentTabValue = this.tabs.get(tabID)
107-
if (currentTabValue === undefined || currentTabValue.type !== 'unknown') {
107+
if (
108+
currentTabValue === undefined ||
109+
(currentTabValue.type !== 'unknown' && currentTabValue.type !== 'welcome')
110+
) {
108111
return
109112
}
110113

0 commit comments

Comments
 (0)