-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: New claude sonnet adds comments/descriptions into code files, making them unusable #1030
Comments
Agree |
I confirm this is an issue with all of the generations I have been doing with Sonnet-3.5. Any fixes? |
Got this working - updated code_monkey Agent as follows: from os.path import basename from core.agents.base import BaseAgent log = get_logger(name) class FileDescription(BaseModel): class CodeMonkey(BaseAgent):
|
Version
VisualStudio Code extension
Operating System
Windows 10
What happened?
This is how the new claude sonnet creates files (i've switched the full config every agent to use the new claude sonnet). Everything below is main.py, and this happens on every file, it adds its description/prethought above and below the code:
As i mentioned this happens on every file, and it cannot seem to fix it himself, so you have to manually go everytime and delete these comments, and when it manually tries to run the code it obviously gets these errors:
The text was updated successfully, but these errors were encountered: