Skip to content

Commit c10d5b7

Browse files
committed
Add support for the prune-context prompt type in the Panel component
1 parent 60f1574 commit c10d5b7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • apps/editor/src/views/panel/frontend

‎apps/editor/src/views/panel/frontend/Panel.tsx‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ export const Panel = () => {
199199
state = edit_context_instructions
200200
} else if (prompt_type == 'no-context') {
201201
state = no_context_instructions
202+
} else if (prompt_type == 'prune-context') {
203+
state = prune_context_instructions
202204
}
203205

204206
if (!state) return ''
@@ -225,7 +227,7 @@ export const Panel = () => {
225227
(!has_affixes &&
226228
!has_instructions &&
227229
web_prompt_type != 'code-at-cursor') ||
228-
(web_prompt_type === 'code-at-cursor' &&
230+
(web_prompt_type == 'code-at-cursor' &&
229231
(!currently_open_file_path || !!current_selection))
230232

231233
const handle_apply_click = () => {

0 commit comments

Comments
 (0)