Skip to content

Commit d704e5a

Browse files
committed
Fix that chat panel is not opened immediately after custom command run
1 parent c8748cc commit d704e5a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Core/Sources/Service/GUI/GraphicalUserInterfaceController.swift.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ struct GUI: ReducerProtocol {
7474

7575
if let activeTab = state.chatTabGroup.activeChatTab as? ChatGPTChatTab {
7676
return .run { send in
77-
await stopAndHandleCommand(activeTab)
7877
await send(.openChatPanel(forceDetach: false))
78+
await stopAndHandleCommand(activeTab)
7979
}
8080
}
8181

@@ -85,15 +85,15 @@ struct GUI: ReducerProtocol {
8585
}) as? ChatGPTChatTab {
8686
state.chatTabGroup.selectedTabId = chatTab.id
8787
return .run { send in
88-
await stopAndHandleCommand(chatTab)
8988
await send(.openChatPanel(forceDetach: false))
89+
await stopAndHandleCommand(chatTab)
9090
}
9191
}
9292
let chatTab = ChatGPTChatTab()
9393
state.chatTabGroup.tabs.append(chatTab)
9494
return .run { send in
95-
await stopAndHandleCommand(chatTab)
9695
await send(.openChatPanel(forceDetach: false))
96+
await stopAndHandleCommand(chatTab)
9797
}
9898

9999
case .suggestionWidget:

0 commit comments

Comments
 (0)