serena
serena copied to clipboard
feat: Add auto_index_on_activate config option
Summary
- Adds new
auto_index_on_activateconfig option toProjectConfig(defaults tofalse) - When enabled, automatically indexes all project source files after project activation
- Pre-populates symbol caches for faster first queries on large projects
Changes
- Added
auto_index_on_activate: bool = Falsefield toProjectConfigdataclass - Implemented
_auto_index_project()method inSerenaAgentthat runs after LSP initialization - Updated
project.template.ymlwith documentation for the new option - Added 3 unit tests for config parsing behavior
Test plan
- [x] Run
uv run poe format- passes - [x] Run
uv run poe type-check- passes - [x] Run
uv run poe test- all 10 config tests pass - [ ] Manual test: Enable option in a project.yml and verify indexing runs on activation