File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
src/core/kilocode/webview Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ export interface KilocodeNotification {
1111 actionText : string
1212 actionURL : string
1313 }
14+ showIn ?: string [ ]
1415}
1516
1617/**
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ export async function fetchKilocodeNotifications({
5252
5353 const { notifications } = ( await response . json ( ) ) as NotificationsResponse
5454
55- return notifications
55+ return notifications . filter ( ( { showIn } ) => ! showIn || showIn . includes ( "cli" ) )
5656}
5757
5858/**
Original file line number Diff line number Diff line change @@ -111,13 +111,13 @@ export const fetchKilocodeNotificationsHandler = async (provider: ClineProvider)
111111 ( notification : any ) =>
112112 ! dismissedIds . includes ( notification . id ) &&
113113 ! shownNativeNotificationIds . has ( notification . id ) &&
114- notification . showAsNative === true ,
114+ ( notification . showIn ?? [ ] ) . includes ( "extension-native" ) ,
115115 )
116116
117117 provider . postMessageToWebview ( {
118118 type : "kilocodeNotificationsResponse" ,
119119 notifications : ( response . data ?. notifications || [ ] ) . filter (
120- ( notification : any ) => notification . showAsNative !== true ,
120+ ( { showIn } : { showIn ?: string [ ] } ) => ! showIn || showIn . includes ( "extension" ) ,
121121 ) ,
122122 } )
123123
You can’t perform that action at this time.
0 commit comments