# Patch Notes - v2.2.46 ## ๐Ÿš€ Key Improvements & Bug Fixes ### 1. AI Communication Protocol Fix - **Issue:** Previously, when a file was attached, the text prompt was completely overwritten by the `visionContent` structure, leading to empty messages being sent to LM Studio. - **Fix:** Merged the text prompt with the vision content array so that both text and file metadata are correctly transmitted. ### 2. Autonomous Loop Optimization - **Issue:** Broad keyword matching (e.g., "์กฐ์‚ฌ", "์„ค๋ช…") triggered local file analysis tasks even for general questions, causing the agent to bypass the LLM and give incomplete answers. - **Fix:** Refined the `isProjectAnalysisRequest` patterns to be more conservative, ensuring generic conversational requests are always handled by the AI model. ### 3. Second Brain Profile Management - **Issue:** Adding new brain profiles was inconsistent because a virtual "default-brain" (injected in memory) was being saved into the permanent settings, causing profile list corruption. - **Fix:** - Decoupled runtime virtual profiles from persistence logic. - Implemented direct settings access for profile addition to avoid stale config caches. - Fixed UI sync issues immediately after adding a new brain folder. ### 4. Build & Reliability - Removed premature empty stream chunks that were causing UI flickering. - Verified build stability with `v2.2.46` VSIX package. --- *Date: 2026-04-25* *Version: 2.2.46*