Skip to content

Commit

Permalink
Fix chat not retaining history when interaction is through onboarding…
Browse files Browse the repository at this point in the history
… tab type (#5193)

When tab type is 'welcome', type is not overwritten with correct tab type after user prompt
  • Loading branch information
rli authored Dec 12, 2024
1 parent 29b1a6c commit 4c0d3d0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type" : "bugfix",
"description" : "Fix chat not retaining history when interaction is through onboarding tab type (#5189)"
}
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@ export class TabsStorage {

public updateTabTypeFromUnknown(tabID: string, tabType: TabType) {
const currentTabValue = this.tabs.get(tabID)
if (currentTabValue === undefined || currentTabValue.type !== 'unknown') {
if (
currentTabValue === undefined ||
(currentTabValue.type !== 'unknown' && currentTabValue.type !== 'welcome')
) {
return
}

Expand Down

0 comments on commit 4c0d3d0

Please sign in to comment.