[Copilot Chat Bug] Multiple code blocks in single response - only last block renders #191262
Replies: 1 comment
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
🏷️ Discussion Type
Bug
💬 Feature/Topic Area
VS Code
Body
Description:
When Copilot Chat sends a response containing 3 or more code/terminal blocks, only the final code block renders in the chat interface. All previous code blocks disappear and are not visible to the user.
Reproduction Steps:
Expected Behavior:
All 4 code blocks render and are visible in chat interface.
Actual Behavior:
Only code block 4 (final block) is visible. Code blocks 1, 2, 3 are hidden/missing.
Workaround Discovered:
Copying the entire response to an external markdown file (.md) and opening the markdown preview in VSCode renders all code blocks correctly. This confirms the issue is specific to Copilot Chat's markdown renderer, not VSCode or the underlying markdown parser.
Steps to Workaround:
Environment:
Reproduction Evidence:
Test case: 4 terminal blocks
Result in chat: Only Block 4 visible

Result in .md preview: All 4 blocks visible ✅

Additional Notes:
This affects user experience significantly when multiple commands/code snippets need to be executed in sequence. Users may not realize blocks are missing unless they copy-paste to external file.
Beta Was this translation helpful? Give feedback.
All reactions