-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
Regex matching for code blocks in copilot responses is a bit convoluted and also requires that we buffer the entire code block before we can stream it. Since we're only ever matching on exact strings and not taking advantage of fancier regex functionality, we can replace the matching with a simpler algorithm that also processes the fragments as a stream with no buffering.