feat(pi-natives): added unified picker coordination for file search operations

- Added `wait_for_picker_scan()` function to search_db module with cancellation token support for polling picker scan completion.
- Integrated picker-based file search into glob matching logic with `collect_files_from_picker()` helper to reuse shared SearchDb picker results.
- Refactored fff and grep modules to use centralized `wait_for_picker_scan()` wrapper instead of direct FilePicker calls, improving cancellation handling.
- Propagated SearchDb instance through agent session initialization and input controller to enable unified file picker coordination across search operations.
This commit is contained in:
can1357
2026-03-27 11:37:47 +01:00
parent 17d596ab44
commit 49cb500175
17 changed files with 157 additions and 13 deletions
@@ -43,6 +43,7 @@ function buildToolSession(
settings: options.settings,
authStorage: options.authStorage,
modelRegistry: options.modelRegistry,
searchDb: ctx.searchDb,
};
}