Repository navigation
Conversation
Pathfinder returned [] for both a successful search with no matches and a failed retrieval call. When one source was unavailable the legacy pipeline could answer from the other source with full confidence. Add status-bearing docs and code searches while retaining the array-returning wrappers for existing callers. The pipeline keeps any surviving sources, marks retrieval degradation on its result, and caps HIGH confidence so the answer keeps its disclaimer. Docs MCP failures still use the plain-text fallback, and the result records that semantic retrieval degraded. Co-Authored-By: Claude Code <noreply@anthropic.com>
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #244.
PathfinderClient.searchCode()historically caught tool and transport failures and returned[], the same value as a successful search with no matches. The legacy pipeline therefore kept a docs-only answer at full confidence when the code index was unavailable. The docs path had a parallel ambiguity when semantic search and its plain-text fallback failed.Add status-bearing docs and code searches returning
{ results, degraded }. They preserve failure separately from healthy empty searches while the existing array-returning methods remain compatible. Docs search still uses the plain-text fallback when MCP fails, and records that semantic retrieval degraded. The pipeline keeps whichever sources remain available, lowers a HIGH result below the HIGH threshold when retrieval failed, and exposesretrievalDegradedonPipelineResultfor its direct docs/code path.Tests:
git diff --checkpassedcopilotkit-internal:cr-loopis unavailable; addressed its findings about tolerant code hits, successful empty responses, docs-status coverage, retrieval handoff reasons, and the field's SupportAgent scope.🤖 Generated with Claude Code