Sonnet 4 code rambling

When using Sonnet 4, it seems to overcomplicate sometimes.
It’s really hard to identify how much of this is the model, and how much is what queries are being sent by cursor.

e.g had a simple issue (caused by LLM edit I missed), where this link changed from
src={/api/images/${scene.image_path}}
to
src={${scene.image_path}}

The effect was images stop showing.
Lazily I prompted Sonnet 4 a 404 error…

  1. It build a new module, i asked it to stop, fix the bug
  2. It build new helper functions, i replied with it just needed to fix the link
  3. It built a data converter function… i replied with data is correct
    4, 5, 6… lmao

Sometimes I try to push the LLMs back on track to see if they are capable of solving a problem that I have already easily identified.

The agent in Cursor is amazing, but it goes berserk sometimes.

Do you have “Thinking” enabled? Back in 3.7 I found it would go way beyond what I asked it “Thinking” was enabled… so I run with it disabled.

Delete your conversation and delete your indexing:

Delete your Conversation:
Top of Prompt window, select the “X”.

Delete INDEXING:
“Cursor/Settings/Cursor Settings/Indexing”

  1. Turn off “Index new folders by default”
  2. Select “Delete Index”.
  3. Reboot Cursor

Rebooting is likely not needed, It’s what I choose to do.