Skip to content

Commit 1190b5e

Browse files
authored
Merge pull request #5415 from JuliaABurch/fix/sessionStorage
Fix: incorrect chatSession import
2 parents 63beacc + da5ee1e commit 1190b5e

File tree

1 file changed

+2
-1
lines changed
  • packages/core/src/amazonqGumby

1 file changed

+2
-1
lines changed

packages/core/src/amazonqGumby/app.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import { debounce } from 'lodash'
1515
import { AuthUtil } from '../codewhisperer/util/authUtil'
1616
import { showTransformationHub } from './commands'
1717
import { transformByQState } from '../codewhisperer/models/model'
18+
import { ChatSessionManager } from './chat/storages/chatSession'
1819

1920
export function init(appContext: AmazonQAppInitContext) {
2021
const gumbyChatControllerEventEmitters: ChatControllerEventEmitters = {
@@ -55,7 +56,7 @@ export function init(appContext: AmazonQAppInitContext) {
5556
let authenticatingSessionID = ''
5657

5758
if (authenticated) {
58-
const session = sessionStorage.getSession()
59+
const session = ChatSessionManager.Instance.getSession()
5960

6061
if (session.isTabOpen() && session.isAuthenticating) {
6162
authenticatingSessionID = session.tabID!

0 commit comments

Comments
 (0)