Problem with codeblocks not rendering in Microsoft 365 Copilot

Ole Slupphaug 70 Reputation points
2026-07-20T08:46:26.23+00:00

Hello,

I am experiencing an issue with Microsoft 365 Copilot where code blocks are not rendering correctly.

When Copilot generates a response containing a code block, the code block area only shows animated/pulsing placeholder lines and the content never appears. Regular text render normally and inline code snippets renders sometimes, but full code blocks do not.

Environment

The issue occurs in:

  • Microsoft 365 Copilot in a web browser (Microsoft Edge)
  • Microsoft 365 Copilot desktop application

What I have tested

  • Repaired the Copilot application from Windows Settings
  • Cleared browser cache and site data
  • Tested with different chats/prompts
  • Verified that the user has the required Copilot license assigned
  • Verified that no obvious Copilot-related policies or restrictions are blocking access
  • Signed out and back in
  • Restarted the device

Additional observations

  • Standard text responses render correctly.
  • Inline code formatting renders correctly sometimes, but not always.
  • The affected area remains as pulsing/loading placeholder lines indefinitely.
  • The behavior is consistent across both the browser and desktop app for those affected.

Has anyone else encountered this issue recently, or is this a known problem with the Copilot client rendering code blocks?

If there are any logs, diagnostics, or additional troubleshooting steps that Microsoft recommends, I would be happy to provide more information.

Microsoft Copilot | Other

11 answers

Sort by: Most helpful
  1. Bjorn Tore Jakobsen 15 Reputation points
    2026-07-23T11:33:09.72+00:00

    This is language dependent.
    Microsoft 365 Copilot Chat seems to have lost the ability to render the codeblocks if the language in the browser is Norwegian (at the least, maybe other languages as well)

    In the brower console you get :

    InlineLoopLoadError Error: Cannot find module './no/CodeBlockStrings.json' i https://res.public.onecdn.static.microsoft/midgard/versionless-v2/artifactviewercsrcomponent.279d8546.chunk.js:1 35150.296794f3.chunk.js:23:47467 Je https://res.public.onecdn.static.microsoft/midgard/versionless-v2/35150.296794f3.chunk.js:23

    The workaorund is to switch to English and do a hard refresh of the chat to clear the browser cache.

    Was this answer helpful?

    10+ people found this answer helpful.

  2. David De Bono 10 Reputation points
    2026-07-28T21:31:04.79+00:00

    We have exactly the same problem in the Microsoft 365 Copilot app in Norwegian. We don't want to change Windows display language, or use the web version. Since this is a known problem, Microsoft must fix it

    Was this answer helpful?

    10+ people found this answer helpful.
    0 comments No comments

  3. Dade, Dustin 0 Reputation points
    2026-08-06T21:38:04.3466667+00:00

    To add more information to this problem, I am an English speaker with English as my OS default language. I am on a Mac using OS 26.6. This has been happening for several days. This is with the standalone app.

    If I use the browser version of Copilot from either Chrome or Firefox, I am able to see the snippets fine. It appears that however the standalone app is built, its causing the problem with the rendering.

    Was this answer helpful?

    9 people found this answer helpful.
    0 comments No comments

  4. Mathias Kirkerud 11 Reputation points
    2026-08-05T06:04:39.05+00:00

    It seems it's back for me now. 05.08.2026 08:04 i get the codeblocks now. (update) and stopped working again right after.....

    Was this answer helpful?

    8 people found this answer helpful.

  5. Craig Knights 0 Reputation points
    2026-08-07T13:47:04.3133333+00:00

    I found this issue fixed itself in the desktop app simply by turning off the New Design toggle in the top right corner of the app.

    Was this answer helpful?

    7 people found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.