You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement performance optimization and test infrastructure improvements
- Add runs-index.json for O(1) list_runs() performance optimization
- Introduce FakeLLMAdapter to reduce mock usage in tests
- Add comprehensive tests for new features
Performance improvements:
- RunStore now maintains a runs-index.jsonl file for fast run listing
- Eliminates O(n) JSON parsing on every /runs command
- Adds rebuild_index() method for migration scenarios
Test infrastructure:
- New FakeLLMAdapter class for scripted test responses
- Helper functions for creating fake text and tool call responses
- Integrated with create_llm_adapter() to support 'fake' provider
- Added 'fake' to provider configs and cost dictionaries
Constraint: Must maintain backward compatibility with existing RunStore API
Tested: test_run_store.py (12 tests including new index tests), test_fake_llm_adapter.py (5 tests)
Confidence: high
Generated with [Devin](https://cli.devin.ai/docs)
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
0 commit comments