For me it regularly gives garbled code with random *s and ;s everywhere. I don't get how supposedly frontier models can be made so useless
But you don't need to get code from the chat window -- that's so 2024. There is an entire agentic coding remote sandbox built into the Enterprise M365 version. It's not talked about, or advertised, but it's there. Just ask for your code changes back in a zip.
It turns out almost anything is possible with Copilot, if you spend a bit of time thinking it through and exploring its capabilities. It is a surprisingly powerful platform.
I think it’s related to how they display the LLM output, through some obfuscation layer in the HTML presented to the browser. I tried to save a thread as pdf once and that got me nowhere because of this.