Claude Opus inserting spaces after decimals and after variable/property dots in Copilot #180833
Replies: 2 comments
-
|
💬 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.
-
|
Pasting here what I also put in issue: https://github.com/orgs/community/discussions/180736 I can confirm I just had this happen in 6 places in a single GitHub action workflow file I had Claude Opus 4.5 modify from the GitHub web page. It took lines like this:
And gave me back this, with no other changes to this line except the new space after
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Bug
Copilot Feature Area
Copilot in GitHub
Body
Bug: When using Claude Opus 4.5 inside GitHub Copilot, the generated code contains random unwanted spaces, for example:
After decimals: 1. 000 instead of 1.000
After dots in property access: element. getAttribute, button. addEventListener
After hyphenated names: tab- button
This breaks JavaScript code and formatting.
Important:
The same prompts tested directly on Claude.ai do not show these issues, and Claude in Copilot cannot “see” the spacing error, suggesting a Copilot rendering bug, not a model bug.
Steps to reproduce:
Generate code with decimals, property access (.getAttribute, .addEventListener), or hyphenated class names (tab-button) using Claude Opus in Copilot.
Expected: No extra spaces.
Actual: Copilot inserts random spaces.
Beta Was this translation helpful? Give feedback.
All reactions