sourcegraph / cody

Type less, code more: Cody is an AI code assistant that uses advanced search and codebase context to help you write and fix code.
https://cody.dev
Apache License 2.0
2.71k stars 297 forks source link

When there are 0 items in the context, instead of saying "0 items", it should say "fetching..." #5640

Closed ykdojo closed 1 month ago

ykdojo commented 1 month ago

Test plan

Test manually.

image

ichim-david commented 1 month ago

@ykdojo nice, I noticed this bug myself where I had the repo as context and it said 0 items while thinking and I clicked to show what was added as context since I knew for a fact I passed the repo context. Upon expansion, several files were mentioned and the number changed eventually. As such it's better to have a loading info than 0 as you propose. Not a major thing since it's just a display bug but it's still nice to have it changed to avoid confusion.