Skip to content

fix: include symbol_id in search results - #45

Open
pradeepmouli wants to merge 1 commit into
intuit:mainfrom
pradeepmouli:fix/search-results-include-symbol-id
Open

fix: include symbol_id in search results#45
pradeepmouli wants to merge 1 commit into
intuit:mainfrom
pradeepmouli:fix/search-results-include-symbol-id

Conversation

@pradeepmouli

Copy link
Copy Markdown
Contributor

Summary

tool_search, tool_search_symbols (MCP), and cmd_search (CLI) all correlate results back to a row keyed by symbol_id internally, but never printed it in the output. That breaks the ability to chain a search result directly into trace_callers/get_code_snippet/symbol_context/transitive_impact — callers have to fall back to get_symbols_in_file (which does print id=) just to get an ID usable with those tools.

Change

Appends id=<symbol_id> to each result line in all three functions, matching get_symbols_in_file's existing convention.

Test plan

  • cargo build -p infigraph-mcp -p infigraph-cli — clean
  • cargo test -p infigraph-mcp --test tool_dispatch — pass
  • cargo test -p infigraph-cli — pass (includes cli_parity)
  • Manually verified infigraph search and the MCP search/search_symbols tools now include id= in output

tool_search, tool_search_symbols (MCP), and cmd_search (CLI) all
correlate results back to a row keyed by symbol_id internally, but
never printed it in the output -- breaking the ability to chain a
search result directly into trace_callers/get_code_snippet/
symbol_context/transitive_impact without a separate lookup call.

Closes #23.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant