[codex] Surface updated search and grep UX - #35
Merged
Merged
Conversation
Adds discovery partial-result opt-in for unified search and grep symbol hydration across CLI, MCP, service types, response envelopes, and implementation docs.
Clarifies search and grep help text, validates grep symbol hydration fields, builds symbol selections dynamically, and avoids unsupported file-intent defaults for docs-only search.
Drops a stale "full doc fetch" placeholder that leaked to every documentation_page result, renders sourceStatus notes on zero-result searches (previously hidden by an early return), surfaces enclosing symbol hydration inside --verbose grep output, reports ignored and incompatible query-feature arrays from sourceStatus, suppresses ignored-filter notes when the filter was auto-defaulted rather than user-set, warns when --in is missing a registry prefix, folds near-duplicate docs results in the terminal display with a count indicator, and hardens several error paths — search-status NOT_FOUND suggests starting fresh, backend 500s get a retry/narrow-target hint, and backend "literal anchor" wording is rewritten to "literal substring" so CLI docs and backend errors use consistent vocabulary. Symbol-field validation errors now reference --symbol-field instead of the MCP snake_case name. Help examples swapped from unreliably-indexed @types/node to lodash and express queries that actually return hits. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Avoid auth/keychain probes when printing help or version output, while still exposing gated command shapes for help. Also rewrites shared grep pattern guidance into CLI flag vocabulary so command help does not leak MCP field names.
jlitola
marked this pull request as ready for review
April 24, 2026 12:04
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.
Summary
Validation
bun testbun run typecheckbun run buildNotes