Problem with codeblocks not rendering in Microsoft 365 Copilot

Ole Slupphaug 60 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

7 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?

    8 people found this answer helpful.
    0 comments No comments

  3. 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?

    4 people found this answer helpful.

  4. 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?

    2 people found this answer helpful.
    0 comments No comments

  5. Sina Salam 31,216 Reputation points Volunteer Moderator
    2026-07-20T13:36:55.51+00:00

    Hello Ole Slupphaug,

    Welcome to the Microsoft Q&A and thank you for posting your questions here.

    I understand that you are having challenges with codeblocks not rendering in Microsoft 365 Copilot.

    If full code blocks are not rendering and remain stuck as loading placeholders. This points to a Copilot client-side rendering or service-side UI issue, not a prompt, license, or ordinary cache problem.

    The reliable way to solve it, is to:

    • Confirm there is no active Microsoft 365 Copilot incident in Microsoft 365 admin center > Health > Service health.
    • Reproduce the issue in a clean Microsoft Edge InPrivate session with extensions disabled and third-party cookies allowed.
    • Test the same prompt in another supported browser, another device, and another network.
    • Validate that your proxy, firewall, SSL inspection, DLP, CASB, DNS filtering, or browser security extensions are not blocking Microsoft 365 Copilot web assets.
    • Update Microsoft Edge, Microsoft Edge WebView2 Runtime, Windows, and Microsoft 365 Apps.
    • If the issue still reproduces in a clean browser and alternate network, raise a Microsoft 365 support case and include screenshots, timestamps, affected user account, browser version, WebView2 version, HAR file, and browser console errors.

    After the clean-browser and alternate-network tests, if the code block still does not render, the issue should be treated as a Microsoft 365 Copilot product/service investigation, because the response is being generated but the code-block renderer is failing to complete. Microsoft 365 Copilot requires supported browsers, required network endpoints, licensed users, Entra ID accounts, and Microsoft 365 app readiness, so the isolation test must focus on rendering assets and service health rather than repeating basic access checks. - https://learn.microsoft.com/en-us/microsoft-365/copilot/microsoft-365-copilot-requirements, https://learn.microsoft.com/en-us/microsoft-365/copilot/microsoft-365-copilot-minimum-requirements

    Use the below official resource links for more reading and steps:

    I hope this is helpful. Please! Do not hesitate to let me know if you have any other questions, steps or clarifications.


    Please do not close the thread by upvoting and accepting the answer if any part of it is helpful.

    Was 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.