File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import ComposableArchitecture
66import Dependencies
77import Environment
88import Preferences
9+ import SuggestionModel
910import SuggestionWidget
1011
1112#if canImport(ProChatTabs)
@@ -54,7 +55,8 @@ struct GUI: ReducerProtocol {
5455 case openChatPanel( forceDetach: Bool )
5556 case createChatGPTChatTabIfNeeded
5657 case sendCustomCommandToActiveChat( CustomCommand )
57-
58+ case toggleWidgets
59+
5860 case suggestionWidget( WidgetFeature . Action )
5961
6062 static func promptToCodeGroup( _ action: PromptToCodeGroup . Action ) -> Self {
@@ -192,6 +194,13 @@ struct GUI: ReducerProtocol {
192194 }
193195 }
194196
197+ case . toggleWidgets:
198+ return . run { send in
199+ await send (
200+ . suggestionWidget( . circularWidget( . widgetClicked) )
201+ )
202+ }
203+
195204 case let . suggestionWidget( . chatPanel( . chatTab( id, . tabContentUpdated) ) ) :
196205 #if canImport(ChatTabPersistent)
197206 // when a tab is updated, persist it.
You can’t perform that action at this time.
0 commit comments