Skip to content

Commit 6294653

Browse files
committed
Fix that chat is not created when running command open chat
1 parent 09d10b7 commit 6294653

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Core/Sources/Service/SuggestionCommandHandler/WindowBaseCommandHandler.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,9 @@ struct WindowBaseCommandHandler: SuggestionCommandHandler {
237237
}
238238

239239
func chatWithSelection(editor: EditorContent) async throws -> UpdatedContent? {
240-
Task {
240+
Task { @MainActor in
241241
let viewStore = GraphicalUserInterfaceController.shared.viewStore
242+
viewStore.send(.createChatGPTChatTabIfNeeded)
242243
viewStore.send(.openChatPanel(forceDetach: false))
243244
}
244245
return nil

0 commit comments

Comments
 (0)