{"version":"0.2.36","anchor":"improvements","canonical_anchor":"improvements","heading":"Improvements","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/0.2.36\/e\/improvements","release_url":"https:\/\/changelogs.core-directive.com\/v\/0.2.36","markdown":"### Improvements\n\nAuto-Compact Enhancement\n\nThe `\/compact` command has been significantly improved:\n\n- Better conversation summarization using a more sophisticated prompt template\n- Improved error handling with clearer user messages\n- The summary now includes structured sections:\n\n- Primary Request and Intent\n- Key Technical Concepts\n- Files and Code Sections\n- Problem Solving\n- Pending Tasks\n- Current Work\n- Next Step Recommendation\n\n**Error messages are now more helpful:**\n\n- \"Not enough messages to compact.\" - when conversation is too short\n- \"Conversation too long. Press esc to go up a few messages and try again.\" - when hitting API limits\n- \"API Error: Request was aborted.\" - for network issues\n\nDiff Display Improvements\n\nThe code diff display now supports:\n\n- Option to hide line numbers with the `hideLineNumbers` parameter\n- Option to skip unchanged lines with the `skipUnchanged` parameter\n- Enhanced word-level diff highlighting for better readability\n\nFile Reading Enhancements\n\n- New token counting for file content to prevent API overload\n- Better error messages when files exceed size limits:\n- Size-based: \"File content (XKB) exceeds maximum allowed size (YKB)\"\n- Token-based: \"File content (X tokens) exceeds maximum allowed tokens (Y)\"\n- Improved handling of large file reads with streaming support\n\nShell Improvements\n\nThe persistent shell has been optimized:\n\n- Better tracking of working directory changes with a \"dirty\" flag\n- Reduced unnecessary `pwd` calls for better performance\n- Enhanced logging for debugging shell operations\n- Fixed initialization timeout for shell configuration loading\n\nPlatform Detection\n\nNew environment detection capabilities:\n\n- `isWslEnvironment`: Detects if running in WSL\n- `isNpmFromWindowsPath`: Detects if npm is being run from Windows path in WSL\n\nConfiguration\n\nNew configuration option added:\n\n- `autoCompactEnabled`: Control automatic conversation compacting (default: true)"}