[FR] Remove search scope constraint from Ask
Enable Ask to automatically determine search scopes without user explicitly setting it
Hi @msukkari , @brendan-kellam , I'd love to work on this issue.
Proposed Implementation:
-
Make scope optional at boundaries - Remove validation in ChatBox that blocks submission when
selectedSearchScopes.length === 0. Allow scope?: undefinedin API. -
Resolve scope:
- If user explicitly selected scopes -> use those
- Else if user has exactly one indexed repo -> use that repo
- Else -> use all indexed repos (with reasonable limit, e.g. 10)
- User selections always take precedence over auto-resolution.
Would appreciate your feedback on this approach before I start! Happy to discuss any concerns or alternative approaches.
Hey @Pallavikumarimdb, thanks for your interest here. Unfortunately the scope of this task is much larger than simply allowing the user to use all search scopes in the UI. We added this limitation on purpose to reduce the likelihood of the context window of the LLMs from being maxed out. This task would require some intelligent way of managing this context
Hi @msukkari , Thanks for the clarification - that makes sense. I understand that the core challenge is managing LLM context safely rather than simply expanding scope.
I propose starting with a deterministic, context-budgeted backend resolver that incrementally selects repos based on clear priority signals (e.g. current repo, recent usage), stopping once a predefined context limit is reached and showing to the user. This keeps behavior predictable, avoids unnecessary LLM calls, and directly addresses the risk of context overflow.
Once stable, we could explore optional enhancements like lightweight keyword-based ranking to further improvement.