@@ -10,6 +10,8 @@ import {
1010 PINNED_HISTORY_CODE_COMPLETIONS_STATE_KEY ,
1111 PINNED_HISTORY_EDIT_STATE_KEY ,
1212 PINNED_HISTORY_NO_CONTEXT_STATE_KEY ,
13+ HISTORY_PRUNE_CONTEXT_STATE_KEY ,
14+ PINNED_HISTORY_PRUNE_CONTEXT_STATE_KEY ,
1315 HistoryEntry
1416} from '@/constants/state-keys'
1517import { PanelProvider } from '@/views/panel/backend/panel-provider'
@@ -50,6 +52,10 @@ export const handle_show_history_quick_pick = async (
5052 history_key = HISTORY_NO_CONTEXT_STATE_KEY
5153 pinned_history_key = PINNED_HISTORY_NO_CONTEXT_STATE_KEY
5254 break
55+ case 'prune-context' :
56+ history_key = HISTORY_PRUNE_CONTEXT_STATE_KEY
57+ pinned_history_key = PINNED_HISTORY_PRUNE_CONTEXT_STATE_KEY
58+ break
5359 }
5460
5561 if ( ! history_key || ! pinned_history_key ) return
@@ -169,6 +175,9 @@ export const handle_show_history_quick_pick = async (
169175 case 'code-completions' :
170176 panel_provider . code_completion_instructions = text
171177 break
178+ case 'prune-context' :
179+ panel_provider . prune_context_instructions = text
180+ break
172181 default :
173182 return
174183 }
@@ -178,7 +187,8 @@ export const handle_show_history_quick_pick = async (
178187 ask : panel_provider . ask_instructions ,
179188 edit_context : panel_provider . edit_instructions ,
180189 no_context : panel_provider . no_context_instructions ,
181- code_completions : panel_provider . code_completion_instructions
190+ code_completions : panel_provider . code_completion_instructions ,
191+ prune_context : panel_provider . prune_context_instructions
182192 } )
183193 }
184194
0 commit comments