Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I tried the agent mode with sonnet 3.7 (not the thinking one). When it started trying to create a file, it kept getting a "Failed to connect to API: 400 Bad Request" error. After a few attempts to create files, it "touch"ed a file and tried to edit this, which also failed. It checked permissions with "ls -la", then it tried to "cat" the code into it but failed because of syntax errors (to do with quoting). Then it tried nano(?!?!) and failed, and then it started "echo"ing the code into the file chunk by chunk, which started working. After 4 chunks it got an error and then it made the following chunks smaller. It took it a dozen "echo"s or so.

While the initial 400 error is a bummer, I am actually surprised and admire its persistence in trying to create the file and in the end finding a way to do so. It forgot to define a couple of stuff in the code, which was trivial to fix, after that the code was working.



Zed employee here - that sounds like a bug, sorry about that!

If you're okay sharing the conversation with us, would you mind pressing the thumbs-down button at the bottom of the thread so that we can see what input led to the 400?

(We can't see the contents of the thread unless you opt into sharing it with the thumbs-down button.)


No problem, and thanks for the response here! I sent two feedback threads (added a second test where a file succeeded to edit and the rest failed). It was actually quite entertaining seeing the model try troubleshoot stuff anyway.

I used github copilot's sonnet 3.7. I now tried copilot's sonnet 3.5 and it seems to work, so it was prob a 3.7 issue? It did not let me try zed's sonnets, so I don't know if there is a problem with zed's 3.7 (I thought I could still do 50 prompts with a free account, but maybe that's not for the agent?).


Thanks for the information. We can reproduce this using Copilot Chat. We're fixing now. We'll let you know when the fix is out.


I believe this PR fixes the issue: https://github.com/zed-industries/zed/pull/30178.


The fix shipped in Zed 0.185.12.


Thanks! Confirming that it works now!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: