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:
@@ -43,6 +43,7 @@ function buildToolSession(
|
||||
settings: options.settings,
|
||||
authStorage: options.authStorage,
|
||||
modelRegistry: options.modelRegistry,
|
||||
searchDb: ctx.searchDb,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user