We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebce401 commit a0d46caCopy full SHA for a0d46ca
1 file changed
Core/Sources/SuggestionWidget/FeatureReducers/WidgetFeature.swift
@@ -196,6 +196,17 @@ public struct WidgetFeature: ReducerProtocol {
196
Scope(state: \.panelState, action: /Action.panel) {
197
PanelFeature()
198
}
199
+
200
+ Reduce { state, action in
201
+ switch action {
202
+ case .panel(.sharedPanel(.promptToCodeGroup(.activateOrCreatePromptToCode))):
203
+ return .run { send in
204
+ await send(.updateKeyWindow(.sharedPanel))
205
+ activateThisApp()
206
+ }
207
+ default: return .none
208
209
210
211
Scope(state: \.chatPanelState, action: /Action.chatPanel) {
212
ChatPanelFeature()
0 commit comments