sourcebot icon indicating copy to clipboard operation
sourcebot copied to clipboard

[FR] Add ref to search results

Open steinybot opened this issue 6 months ago • 2 comments

I would like POST /api/find_references to return the ref in the response and then be able to call GET /api/source to get the contents of the file with that ref.

I have some workflows that will perform searches and then lookup the contents later but if the code changes between then and when I get the contents those results do not match up.

All search responses should include refs.

steinybot avatar May 05 '26 01:05 steinybot

@steinybot thx for raising. To clarify, is the suggestion to include the commit SHA per file s.t., you have a stable reference to call /api/source later? If so, I think that is a reasonable request, and probably something we want to return on all of our search & navigation apis.

brendan-kellam avatar May 09 '26 20:05 brendan-kellam

i want to work on this issue

Amresh-01 avatar Jun 13 '26 08:06 Amresh-01