GitHub Copilot adds unwanted spaces after dots in code output #180857
Replies: 6 comments 1 reply
-
|
💬 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.
-
|
i have the same issue for days - it's frustrating |
Beta Was this translation helpful? Give feedback.
-
|
Same for me |
Beta Was this translation helpful? Give feedback.
-
|
same for me |
Beta Was this translation helpful? Give feedback.
-
|
Same for me |
Beta Was this translation helpful? Give feedback.
-
Workarounds You Can Use Right Now1. Use Copy as Raw / Copy Code ButtonInstead of selecting text manually, always use the “Copy” button on the code block. Several users have confirmed:
2. Switch to GitHub Copilot in VS CodeThis issue seems isolated to Copilot Chat on github.com (web). Using Copilot inside:
does not introduce the unwanted spaces. If you rely on code generation heavily, this is currently the most stable option. 3. Add a Post-Output Normalization StepIf you must stay on the web UI for now, a quick regex cleanup works: Find: Replace with: This fixes:
4. Force “Exact Output” in the Prompt (Partial Mitigation)This doesn’t fully fix the bug, but can reduce its frequency:
It helps in short answers but fails in long conversations (as you already observed). Likely Root Cause (From Behavior Pattern)Based on where the spaces appear (after
Since it affects:
…it’s clearly not intended model output. |
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.
-
Select Topic Area
Bug
Copilot Feature Area
Copilot in GitHub
Body
Bug Description
GitHub Copilot Chat on github.com consistently adds unwanted spaces after dots (
.) when generating code, especially in JSON, JavaScript expressions, and URLs.Examples of the Bug
github. com/orgs/community/discussionsfd.axjsq.dpdns.org/orgs/community/discussions$json. content$json.content$json. conversation? . status$json.conversation?.statustypeVersion": 2. 1typeVersion": 2.1$now. toISO()$now.toISO()<? php<?phpImpact
Environment
Additional Context
This bug persists even after being told about it multiple times in the same conversation. The AI acknowledges the bug but continues making the same mistake.
Beta Was this translation helpful? Give feedback.
All reactions