1.8 KiB
1.8 KiB
Implementation Plan: Enhanced Context Control & Cache Awareness (enhanced_context_control_20260307)
Reference: Spec | Architecture Guide
Phase 1: Data Model & Project Configuration
Focus: Update the underlying structures to support per-file flags.
- Task 1.1: Update
FileItemdataclass/model to includeauto_aggregateandforce_fullflags. (d7a6ba7) - Task 1.2: Modify
project_manager.pyto parse and serialize these new flags. (d7a6ba7)
Phase 2: Context Builder Updates
Focus: Make the context aggregation logic respect the new flags.
- Task 2.1: Update
aggregate.pyto filter out files whereauto_aggregateis False. (d7a6ba7) - Task 2.2: Modify skeleton generation logic in
aggregate.pyto send full content whenforce_fullis True. (d7a6ba7) - Task 2.3: Add support for manual 'Context' role injections. (
d7a6ba7)
Phase 3: Gemini Cache Tracking
Focus: Track and expose API cache state.
- Task 3.1: Modify
ai_client.py's Gemini cache logic to record which file paths are in the active cache. (d7a6ba7) - Task 3.2: Create an event payload to push the active cache state to the GUI. (
d7a6ba7)
Phase 4: UI Refactoring
Focus: Update the Files & Media panel and event handlers.
- Task 4.1: Refactor the Files & Media panel in
gui_2.pyfrom a list to an ImGui table. (d7a6ba7) - Task 4.2: Implement handlers in
_process_pending_gui_tasksto receive cache state updates. (d7a6ba7) - Task 4.3: Wire the table checkboxes to update models and trigger project saves. (
d7a6ba7)
Phase 5: Testing & Verification
Focus: Ensure stability and adherence to the architecture.