-
-
Notifications
You must be signed in to change notification settings - Fork 415
fix(search): address coderabbitai findings on PR #414 #521
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
fuleinist
wants to merge
5
commits into
KnockOutEZ:main
Choose a base branch
from
fuleinist:fix/coderabbitai-addressed
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
2b37c4f
fix(search): wire search_engines parameter through to engine dispatch
fuleinist 9d4476f
fix(search): apply engineFilter to recovery wave, backfill, and cache…
fuleinist ab9e3b5
fix(search): address coderabbitai findings on PR #414
fuleinist fcf468c
fix(search): address coderabbitai findings on PR #521
fuleinist a3cee9c
fix(search): normalise engineFilter before every gate; no probe re-di…
fuleinist File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| /** Normalise a caller-supplied engine list: trim, lowercase, dedupe, sort. | ||
| * Mirrors the orchestrator's case-insensitive engine matching, so | ||
| * `['DuckDuckGo']`, `['duckduckgo']`, whitespace-padded, reordered, or | ||
| * duplicate-name lists — all of which dispatch the same engine set — hit | ||
| * the same allowlist gates AND produce identical cache keys. Shared by the | ||
| * cache-key fingerprint (cache/store.ts) and every engineFilter gate in the | ||
| * orchestrator so the two can never drift apart (a padded value that misses | ||
| * the dispatch allowlist but trims into the cache key would file a | ||
| * full-roster response under a single-engine key). An all-blank list | ||
| * normalises to null, i.e. "no filter". */ | ||
| export function normaliseEngineList(list?: string[] | null): string[] | null { | ||
| if (!list || list.length === 0) return null; | ||
| const lower = list.map((e) => e.toLowerCase().trim()).filter((e) => e.length > 0); | ||
| if (lower.length === 0) return null; | ||
| return [...new Set(lower)].sort(); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy lift
🔎 Supported by static analysis
🤖 get_repo_knowledge executed:
get_repo_knowledge KnockOutEZ/wigolo /tmp/coderabbit-repo-knowledge/knockoutez-wigolo-7db4c121Length of output: 626
🏁 Script executed:
Repository: KnockOutEZ/wigolo
Length of output: 2990
🏁 Script executed:
Repository: KnockOutEZ/wigolo
Length of output: 2953
🏁 Script executed:
Repository: KnockOutEZ/wigolo
Length of output: 283
🏁 Script executed:
Repository: KnockOutEZ/wigolo
Length of output: 3059
🏁 Script executed:
Repository: KnockOutEZ/wigolo
Length of output: 2060
🏁 Script executed:
Repository: KnockOutEZ/wigolo
Length of output: 5135
🏁 Script executed:
Repository: KnockOutEZ/wigolo
Length of output: 33375
Keep a recognized
engineFilterrestricted after category fallback.If a specialized engine matches
engineFilterbut returns no results, the fallback tocategory: 'general'can treat the filter as unmatched and restore the full general roster. Preserve the recognized-filter state across recursion. Add a regression test that uses an engine absent from the general roster and asserts that no unselected general engine runs.🤖 Prompt for AI Agents