Skip to content

Commit f7a4862

Browse files
committed
Show agentic CLI output channel when no items are found during search
- in agentic search, when no files were found, focus on OUTPUT pane > CWC Agent └── apps └── editor ├── package.json └── src ├── commands │ ├── agentic-search-command │ │ ├── agentic-search-command.ts │ │ └── index.ts │ └── index.ts ├── constants │ └── instructions.ts ├── context │ └── helpers │ └── get-all-workspace-files.ts ├── extension.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 │ └── translations │ ├── common.ts │ └── views │ └── prompt │ └── handlers │ └── handle-agentic-search.ts ├── utils │ ├── agentic-cli-invocation │ │ ├── agents │ │ │ ├── antigravity.ts │ │ │ ├── claude.ts │ │ │ ├── codex.ts │ │ │ ├── cursor.ts │ │ │ ├── grok.ts │ │ │ ├── index.ts │ │ │ └── opencode.ts │ │ ├── index.ts │ │ ├── invoke-agentic-cli.ts │ │ └── types.ts │ └── extract-paths-from-bullet-list.ts └── views └── prompt ├── backend │ ├── message-handlers │ │ ├── handle-agentic-search.ts │ │ └── handle-invoke-agentic-cli.ts │ └── prompt-view-provider.ts ├── frontend │ └── Main │ └── MainView │ └── components │ └── PromptAttachments │ └── PromptAttachments.tsx └── types └── messages.ts
1 parent 5d57c4a commit f7a4862

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎apps/editor/src/features/agentic-search/agentic-search.ts‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ import { build_agent_prompt } from './utils/build-agent-prompt'
1616
import { replace_symbols } from '@/views/prompt/backend/utils/symbols/replace-symbols'
1717
import { search_files } from '@/features/search-files'
1818
import { WebSocketManager } from '@/services/websocket-manager'
19-
import { invoke_agentic_cli } from '@/utils/agentic-cli-invocation'
19+
import {
20+
invoke_agentic_cli,
21+
show_agentic_cli_output_channel
22+
} from '@/utils/agentic-cli-invocation'
2023

2124
export const agentic_search = async (params: {
2225
workspace_provider: WorkspaceProvider
@@ -130,6 +133,7 @@ export const agentic_search = async (params: {
130133
vscode.window.showInformationMessage(
131134
t('common.info.no-items-found', { items: 'files' })
132135
)
136+
show_agentic_cli_output_channel()
133137
continue
134138
}
135139

@@ -160,6 +164,7 @@ export const agentic_search = async (params: {
160164
vscode.window.showInformationMessage(
161165
t('common.info.no-items-found', { items: 'files' })
162166
)
167+
show_agentic_cli_output_channel()
163168
continue
164169
}
165170

0 commit comments

Comments
 (0)