logancyang_obsidian-copilot/docs
Logan Yang ed884298ba
Integrate ProjectChainRunner and ChatManager with new layered context (#1973)
* Integrate ProjectChainRunner and ChatManager with new layered context

- Introduced `ProjectChainRunner` to automatically include project context in L1 via `ChatManager.getSystemPromptForMessage()`, simplifying the class structure by inheriting behavior from `CopilotPlusChainRunner`.
- Updated `ChatManager` to build system prompts that append project context when in project mode, ensuring seamless integration without special-case logic.
- Implemented null guards for project context to prevent erroneous output when context is unavailable.
- Refactored documentation to reflect changes in context handling and the new project chain runner functionality.

* Enhance ChatManager tests with project context mocks

- Added mocks for project context retrieval and system prompt settings in `ChatManager.test.ts` to facilitate testing without relying on actual project data.
- Improved test coverage for context-related functionalities by simulating project context and system prompt retrieval, ensuring robust testing of the ChatManager's behavior in various scenarios.
2025-10-28 17:08:37 -07:00
..
CITATION_IMPLEMENTATION.md Implement inline citation (#1821) 2025-09-21 20:03:09 -07:00
CONTEXT_ENGINEERING.md Integrate ProjectChainRunner and ChatManager with new layered context (#1973) 2025-10-28 17:08:37 -07:00
MESSAGE_ARCHITECTURE.md Context revamp (#1971) 2025-10-27 23:28:36 -07:00
TECHDEBT.md Implement inline citation (#1821) 2025-09-21 20:03:09 -07:00
TOOLS.md Context revamp (#1971) 2025-10-27 23:28:36 -07:00