Roo-Code/src
Murilo Pires 4a78f51fe5
Feat/issue 5149 configurable max search results (#5402)
* feat: add configurable max search results for codebase indexing (#5149)

- Add codebaseIndexSearchMaxResults to configuration schema with validation (10-1000)
- Update Qdrant client to accept maxResults parameter in search method
- Add UI slider in Experimental Settings to configure max search results
- Rename constants to DEFAULT_MAX_SEARCH_RESULTS and DEFAULT_SEARCH_MIN_SCORE for clarity
- Add translations for new setting across all 17 supported languages
- Add comprehensive test coverage for config manager, Qdrant client, and UI components

fix: settings persistence for codebase index configuration

- Add new updateCodebaseIndexConfig message type to properly merge config updates
- Update SettingsView to send entire codebaseIndexConfig object instead of just enabled flag
- Add backend handler to merge configuration updates instead of overwriting
- Add tests for the new message handler functionality

This ensures the max search results setting persists correctly when saved.

* fix: correct property name in updateCodebaseIndexConfig message

The frontend was sending 'config' but the backend expects 'codebaseIndexConfig'.
This mismatch was preventing the max search results setting from persisting.

* feat: refactor codebase index constants and update search result defaults

* feat(chat): add advanced settings for maximum search results configuration

* refactor: remove updateCodebaseIndexConfig and integrate max search results into saveCodeIndexSettingsAtomic

- Removed updateCodebaseIndexConfig message type and handler as per PR feedback
- Added codebaseIndexSearchMaxResults to codeIndexSettings type in WebviewMessage.ts
- Updated saveCodeIndexSettingsAtomic to save codebaseIndexSearchMaxResults
- Fixed SettingsView.tsx to use codebaseIndexEnabled message instead of updateCodebaseIndexConfig

* Delete webview-ui/src/components/settings/__tests__/ExperimentalSettings.spec.tsx

* refactor: remove updateCodebaseIndexConfig tests to streamline codebase indexing logic

* revert this

---------

Co-authored-by: Daniel Riccio <ricciodaniel98@gmail.com>
Co-authored-by: Daniel <57051444+daniel-lxs@users.noreply.github.com>
2025-07-04 20:55:15 -04:00
..
__mocks__ feature: add toggle for disable mcp server tool from prompt (#3551) 2025-06-20 19:14:59 -04:00
__tests__ Farewell jest (#4607) 2025-06-16 21:39:45 -07:00
activate fix terminal keyboard shortcut error when adding content to context (#5161) 2025-06-26 20:34:14 -04:00
api feat: adding default headers and testing for litellm fetcher (#5242) 2025-06-30 20:23:11 -04:00
assets PNPM + Turbo monorepo + Nightly releases (#3407) 2025-05-21 21:01:20 -07:00
core Feat/issue 5149 configurable max search results (#5402) 2025-07-04 20:55:15 -04:00
extension Fix/4100 subtask completion mismatch (#4738) 2025-06-17 15:06:44 -04:00
i18n feat: Delete .roo/rules-{mode} folder when custom mode is deleted (#5210) (#5317) 2025-07-03 13:00:07 -04:00
integrations fix: prevent chatbox focus loss during automated file editing (#4574) (#5349) 2025-07-03 20:43:06 -04:00
services Feat/issue 5149 configurable max search results (#5402) 2025-07-04 20:55:15 -04:00
shared Feat/issue 5149 configurable max search results (#5402) 2025-07-04 20:55:15 -04:00
utils feat: Add automatic configuration import on extension startup (#4848) 2025-06-30 10:45:51 -04:00
workers Count tokens worker (#3037) 2025-04-29 12:29:25 -07:00
.gitignore PNPM + Turbo monorepo + Nightly releases (#3407) 2025-05-21 21:01:20 -07:00
.prettierignore PNPM + Turbo monorepo + Nightly releases (#3407) 2025-05-21 21:01:20 -07:00
.vscodeignore feat: add LaTeX math equation rendering in chat window (#4258) (#4786) 2025-06-20 15:45:18 -04:00
esbuild.mjs Try to fix win32 esbuild (#4479) 2025-06-09 15:03:44 -07:00
eslint.config.mjs Fix linter errors (#3821) 2025-05-21 23:16:43 -07:00
extension.ts feat: Add automatic configuration import on extension startup (#4848) 2025-06-30 10:45:51 -04:00
package.json Changeset version bump (#5358) 2025-07-02 17:20:21 -04:00
package.nls.ca.json feat: Add automatic configuration import on extension startup (#4848) 2025-06-30 10:45:51 -04:00
package.nls.de.json feat: Add automatic configuration import on extension startup (#4848) 2025-06-30 10:45:51 -04:00
package.nls.es.json feat: Add automatic configuration import on extension startup (#4848) 2025-06-30 10:45:51 -04:00
package.nls.fr.json feat: Add automatic configuration import on extension startup (#4848) 2025-06-30 10:45:51 -04:00
package.nls.hi.json feat: Add automatic configuration import on extension startup (#4848) 2025-06-30 10:45:51 -04:00
package.nls.id.json feat: Add automatic configuration import on extension startup (#4848) 2025-06-30 10:45:51 -04:00
package.nls.it.json feat: Add automatic configuration import on extension startup (#4848) 2025-06-30 10:45:51 -04:00
package.nls.ja.json feat: Add automatic configuration import on extension startup (#4848) 2025-06-30 10:45:51 -04:00
package.nls.json feat: Add automatic configuration import on extension startup (#4848) 2025-06-30 10:45:51 -04:00
package.nls.ko.json feat: Add automatic configuration import on extension startup (#4848) 2025-06-30 10:45:51 -04:00
package.nls.nl.json feat: Add automatic configuration import on extension startup (#4848) 2025-06-30 10:45:51 -04:00
package.nls.pl.json feat: Add automatic configuration import on extension startup (#4848) 2025-06-30 10:45:51 -04:00
package.nls.pt-BR.json feat: Add automatic configuration import on extension startup (#4848) 2025-06-30 10:45:51 -04:00
package.nls.ru.json feat: Add automatic configuration import on extension startup (#4848) 2025-06-30 10:45:51 -04:00
package.nls.tr.json feat: Add automatic configuration import on extension startup (#4848) 2025-06-30 10:45:51 -04:00
package.nls.vi.json feat: Add automatic configuration import on extension startup (#4848) 2025-06-30 10:45:51 -04:00
package.nls.zh-CN.json feat: Add automatic configuration import on extension startup (#4848) 2025-06-30 10:45:51 -04:00
package.nls.zh-TW.json feat: Add automatic configuration import on extension startup (#4848) 2025-06-30 10:45:51 -04:00
tsconfig.json Farewell jest (#4607) 2025-06-16 21:39:45 -07:00
turbo.json Improve turbo task dependency declarations (#4323) 2025-06-04 09:32:27 -07:00
vitest.config.ts Fix #4958: Increase vitest timeout for Windows CI (#4959) 2025-06-20 17:14:42 -07:00
vitest.setup.ts Farewell jest (#4607) 2025-06-16 21:39:45 -07:00