When AI models fail to use proper artifact tags, code blocks now get automatically detected and converted to file artifacts, preventing code from appearing in chat. The parser detects markdown code fences outside artifacts and wraps them with proper artifact/action tags. This fixes the issue where code would randomly appear in chat instead of being generated as files in the workspace. Fixes #1230 Co-Authored-By: Keoma Wright <founder@lovemedia.org.za>
16 KiB
16 KiB