Composer stops writing files

I run into this quit regularly and its not clear why it happens.
Composer refuses to create/edit files and instead outputs the code to the conversation. See below for the example I just had.

It seems the model does not matter - when it happens - it happens to all models.

And resetting composer does not seem to change it.

Any ideas how I can help you guys debug this? Its intermittent - eg I just had a great 1 hour chat with my team in cursor and suddenly it stopped editing/creating files.

ps. To confirm i double checked and no file was created.
ps. ps. I apply to custom styling to vscode to make it easier to see my questions.

7 Likes

I’m experiencing the same issue. The Composer is no longer creating or editing files. It only displays the code in the conversation, Similar to the AI pane chat. Thus Composer is not working properly and we cannot edit multiple files. The new Update Broke Composer.

4 Likes

I observed the same behaviour in this thread:

And another user observed similar behaviour here:

And another here:

A more extreme example of no response being returned is here:

My conclusion is that when the chat gets to a certain size or complexity it can’t output responses any more.

That made me think that it would be good to display the token size or ‘context window’ of the chat so we could see how large the chat had gotten etc.

Hopefully, like most bugs, after a bit of thought the problem will be able to be identified and resolved with a relatively small tweak.

4 Likes

this is very helpful. Not something I considered. Will see if resetting context on composer solves it when i run into it again

3 Likes

same errors here, very sudden, doesn’t matter whether it’s the ai chat to apply edits or using composer, it doesn’t actually apply anything. it always acts like it is doing something and asks to accept/reject but nothing edited at all.

3 Likes

composer is an alpha feature and we are quickly iterating and fixing bugs.

we really really appreciate the bugs found and we will fix as many of the bugs as quickly as possible in ti.

11 Likes

yep you guys are amazing. Is the best place to log them here or as github issues?

3 Likes

yes! same here

1 Like

Does this happen consistently? Or occassionally?

3 Likes

Inconsistently but quit regularly
Any way I can get hold of more detailed debug info to pass on when it happens again?

2 Likes

Consistently… usually after a long session, ie several hours of continous use. I tried:
starting new Composer chat, New Chats in sidebar
enabling / disabling Preview
restarting Cursor
rebooting
disabling then renabling API keys

Only thing I’ve found that works sometimes, is asking it
“Please add comments, do it, then APPLY directly”

If I had to guess, that sparks it to take action bc whatever imaginary empty diff it knows, is no longer valid after that request

2 Likes

Heres an example of composer again - saying its created files but not creating. Fresh context, small 74 line code base (single python script), .cursorrules file.

Not sure if this sort of info is helpful to fix the issue? If not let me know what other debug info would help.

After posting asked it why it did not save to files - and suddenly it starts to save.

2 Likes

@imrat - not sure if it will resolve the bugs, but I just saw that 0.39.3 is available to download by clicking on the Download button at www.cursor.com.

2 Likes

Ah amazing testing now!!

Already on .3

CleanShot 2024-08-10 at 15.07.45@2x

2 Likes

@imrat - fyi - i just checked cursor.com this morning and 0.39.4 is available now :sweat_smile:.

2 Likes

Yeah got update notification yesterday

Not ran into the problem again … apart from it refusing to write to .cursorrules but it was creating and writing to other files.

Fingers crossed :crossed_fingers:

2 Likes

Nice new UI enhancement for file / folder creation.

1 Like

Sadly looks like Cursor just got lazy again!

Suddenly stops writing files

Steps:

  1. chatting in sidebar about best wat to do a load test with random input data for each request
  2. once I got to the outline of a good solution - pressed the “open in composer” button
  3. composer immediately created the required file
  4. i then asked it to create 2 csv files with some random data
  5. it refuses - repeatedly - even when changing the model.




1 Like

@imrat

What happens if you create a brand new Composer chat and ask it to do the same thing again?

Does it ‘right itself’?

2 Likes

Sadly did not make a difference.

Tried:

  1. new chat in same composer window
  2. delete chats / add a new one
  3. reload window - create new chat
2 Likes