fix: address code review feedback for Phase 5
- Critical Issue: Filter node_modules and target directories in code search.
The filter_entry closure now checks skip_dirs for ALL directories, not just
those starting with '.'. This ensures node_modules and target are properly
skipped. Added unit test code_search_skips_node_modules_and_target to verify.
- Important Issue: Collapse nested if-let chains in orchestrator.rs using
Rust 2024 let-chains. The try_unblock_tasks method now uses a single
if let ... && let ... condition instead of nested blocks, resolving the
clippy collapsible_if warning.
- Minor Issue: Tighten assertion in code_search_skips_binary_files test.
Removed the vacuous disjunction - the '.' regex always matches text.txt,
so the assertion now directly checks for "text.txt" presence.
Verification:
- All 7 code_search unit tests pass
- Full test suite passes (all 100+ tests)
- cargo clippy clean (collapsible_if warning resolved)
- cargo build successful
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>