Skip to content

Commit 2f1c96c

Browse files
committed
Conditionally skip search prompt based on current instructions
- when instructions are empty, 'agentic search' invoked from the Prompt View should ask user for them in an input box, just like when invoking from workspace pane. └── apps └── editor ├── package.json └── src ├── commands │ └── agentic-search-command │ ├── agentic-search-command.ts │ └── index.ts ├── features │ └── agentic-search │ ├── agentic-search-state.ts │ ├── agentic-search.ts │ ├── index.ts │ └── utils │ ├── build-agent-prompt.ts │ ├── index.ts │ └── prompt-for-search-term.ts ├── i18n │ ├── index.ts │ └── translations │ ├── features │ │ └── agentic-search.ts │ └── utils │ ├── agentic-cli-invocation.ts │ └── index.ts ├── utils │ └── agentic-cli-invocation │ ├── index.ts │ └── invoke-agentic-cli.ts └── views └── prompt └── backend └── message-handlers └── handle-agentic-search.ts
1 parent ec309a4 commit 2f1c96c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apps/editor/src/views/prompt/backend/message-handlers/handle-agentic-search.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export const handle_agentic_search = async (
3838
websocket_manager: prompt_view_provider.websocket_server_instance,
3939
query: initial_query,
4040
current_instructions,
41-
skip_prompt_if_not_empty: true
41+
skip_prompt_if_not_empty: current_instructions !== ''
4242
})
4343

4444
if (!result || result === 'back') return

0 commit comments

Comments
 (0)