# Composer stops writing files

**URL:** <https://forum.cursor.com/t/composer-stops-writing-files/7009>\
**Category:** Bug Reports\
**Created:** [August 3, 2024, 1:58pm UTC](https://forum.cursor.com/t/composer-stops-writing-files/7009 "2024-08-03T13:58:15Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![imrat](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/imrat/32/2837_2.png) [@imrat](https://forum.cursor.com/u/imrat)\
**Post date:** [August 3, 2024, 1:58pm UTC](https://forum.cursor.com/t/composer-stops-writing-files/7009/1 "2024-08-03T13:58:15Z")

</div>

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.

 ![CleanShot 2024-08-03 at 14.53.00@2x](https://us1.discourse-cdn.com/cursor1/original/2X/b/b105f4495061e6519390de76590a7290a7c7b833.png)

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.

---

<div class="post-metadata">

**Author:** ![Mushin](https://avatars.discourse-cdn.com/v4/letter/m/df788c/32.png) [@Mushin](https://forum.cursor.com/u/Mushin)\
**Post date:** [August 3, 2024, 8:19pm UTC](https://forum.cursor.com/t/composer-stops-writing-files/7009/2 "2024-08-03T20:19:50Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![litecode](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/litecode/32/2966_2.png) [@litecode](https://forum.cursor.com/u/litecode)\
**Post date:** [August 4, 2024, 1:05am UTC](https://forum.cursor.com/t/composer-stops-writing-files/7009/3 "2024-08-04T01:05:20Z")

</div>

I observed the same behaviour in this thread:

> [@Composer unable to produce diffs on html file with 30 table rows](https://forum.cursor.com/t/composer-unable-to-produce-diffs-on-html-file-with-30-table-rows/6603/2):
>
> I am continuing to experience this behaviour in other files and projects. i don’t see any errors anywhere. Composer looks like it is working on suggesting the edits, I can see the status in the tabs chugging along, and then the ‘Accept All’ button becomes clickable, but there are no suggested edits. So it is like Composer is saying: “And here are some amazing suggestions for you - et voila! …” But then there are no suggested changes visible.

And another user observed similar behaviour here:

> [@Interpreter mode broken again](https://forum.cursor.com/t/interpreter-mode-broken-again/6962):
>
> It’s saying things like “I will do this and that” and then not doing anything

And another here:

> [@Apply doesn't work](https://forum.cursor.com/t/apply-doesnt-work/6717):
>
> This happens sometimes, I didn’t catch a pattern yet but if I have a long conversation and it stops applying code as expected, it doesn’t apply on a new chat as well. I am a Pro user: Version: 0.38.0 VSCode Version: 1.91.1 Commit: 1252dd54bee0d8caa777cd58df6ab01192a69c30 Date: 2024-07-23T21:25:09.849Z Electron: 29.4.0 ElectronBuildId: undefined Chromium: 122.0.6261.156 Node.js: 20.9.0 V8: 12.2.281.27-electron.0 OS: Windows\_NT x64 10.0.26120

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

> [@Long context chat - claude-3-5-sonnet-200k - doesn't return response](https://forum.cursor.com/t/long-context-chat-claude-3-5-sonnet-200k-doesnt-return-response/6973):
>
> Steps to reproduce: Enable long context chat in Cursor’s beta settings Press Ctrl + L to open chat Select the claude-3-5-sonnet-200k model Mention 4 files with the @ feature File token size was: File 1 2K tokens File 2 3K tokens File 3 497 tokens File 4 592 tokens Add an additional question in the text prompt which was fairly long Click on chat It thought for a long while, so I thought it was working, but when it completed thinking there was no response Update: I closed Cursor, re-opene…

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.

> [@Display number of tokens in current chat](https://forum.cursor.com/t/display-number-of-tokens-in-current-chat/6972):
>
> I am not sure if this information is easily available, but I just noticed that when mentioning files with the @ feature in Ctrl + L in Long Context Chat mode, there is a handy feature that displays the token length of the file next to the file name. That is very cool. It made me wonder if it would be possible to display the cumulative token length of the chat somewhere - i.e. where the value was updated as the chat progressed, just to see how large the chat was actually getting. In case it ma…

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

---

<div class="post-metadata">

**Author:** ![imrat](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/imrat/32/2837_2.png) [@imrat](https://forum.cursor.com/u/imrat)\
**Post date:** [August 5, 2024, 11:44am UTC](https://forum.cursor.com/t/composer-stops-writing-files/7009/4 "2024-08-05T11:44:04Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![moose](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@moose](https://forum.cursor.com/u/moose)\
**Post date:** [August 6, 2024, 5:38am UTC](https://forum.cursor.com/t/composer-stops-writing-files/7009/5 "2024-08-06T05:38:23Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![sualeh](https://avatars.discourse-cdn.com/v4/letter/s/e0b2c6/32.png) [@sualeh](https://forum.cursor.com/u/sualeh)\
**Post date:** [August 6, 2024, 6:11am UTC](https://forum.cursor.com/t/composer-stops-writing-files/7009/6 "2024-08-06T06:11:34Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![imrat](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/imrat/32/2837_2.png) [@imrat](https://forum.cursor.com/u/imrat)\
**Post date:** [August 6, 2024, 9:07am UTC](https://forum.cursor.com/t/composer-stops-writing-files/7009/7 "2024-08-06T09:07:13Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![wm9](https://avatars.discourse-cdn.com/v4/letter/w/a8b319/32.png) [@wm9](https://forum.cursor.com/u/wm9)\
**Post date:** [August 6, 2024, 12:58pm UTC](https://forum.cursor.com/t/composer-stops-writing-files/7009/8 "2024-08-06T12:58:32Z")

</div>

yes! same here

---

<div class="post-metadata">

**Author:** ![shaoruu](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/shaoruu/32/2205_2.png) [@shaoruu](https://forum.cursor.com/u/shaoruu)\
**Post date:** [August 6, 2024, 5:21pm UTC](https://forum.cursor.com/t/composer-stops-writing-files/7009/9 "2024-08-06T17:21:27Z")

</div>

Does this happen consistently? Or occassionally?

---

<div class="post-metadata">

**Author:** ![imrat](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/imrat/32/2837_2.png) [@imrat](https://forum.cursor.com/u/imrat)\
**Post date:** [August 6, 2024, 6:52pm UTC](https://forum.cursor.com/t/composer-stops-writing-files/7009/10 "2024-08-06T18:52:07Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![wm9](https://avatars.discourse-cdn.com/v4/letter/w/a8b319/32.png) [@wm9](https://forum.cursor.com/u/wm9)\
**Post date:** [August 6, 2024, 10:43pm UTC](https://forum.cursor.com/t/composer-stops-writing-files/7009/11 "2024-08-06T22:43:46Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![imrat](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/imrat/32/2837_2.png) [@imrat](https://forum.cursor.com/u/imrat)\
**Post date:** [August 10, 2024, 1:40pm UTC](https://forum.cursor.com/t/composer-stops-writing-files/7009/12 "2024-08-10T13:40:53Z")

</div>

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.

 ![Start of chat](https://us1.discourse-cdn.com/cursor1/original/2X/5/582b30d552cdd65e2c9ac9af77dd770dac5b8139.png)

 ![Asking it to write files as it didnt](https://us1.discourse-cdn.com/cursor1/original/2X/8/841d07dbbfda8b7b2ebcce92c5ce012e834b9b35.png)

 ![Still no files / changes saved](https://us1.discourse-cdn.com/cursor1/original/2X/3/3a75ad163946383b62cf1e52467bc581b825a042.png)

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

 ![Now it is saving](https://us1.discourse-cdn.com/cursor1/original/2X/7/7c0501de8cdcbb3af244d0c2bd4f914e53c5272d.png)

---

<div class="post-metadata">

**Author:** ![litecode](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/litecode/32/2966_2.png) [@litecode](https://forum.cursor.com/u/litecode)\
**Post date:** [August 10, 2024, 1:47pm UTC](https://forum.cursor.com/t/composer-stops-writing-files/7009/13 "2024-08-10T13:47:44Z")

</div>

@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](https://www.cursor.com).

---

<div class="post-metadata">

**Author:** ![imrat](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/imrat/32/2837_2.png) [@imrat](https://forum.cursor.com/u/imrat)\
**Post date:** [August 10, 2024, 2:07pm UTC](https://forum.cursor.com/t/composer-stops-writing-files/7009/14 "2024-08-10T14:07:35Z")

</div>

~~Ah amazing testing now!!~~

Already on .3

![CleanShot 2024-08-10 at 15.07.45@2x](https://us1.discourse-cdn.com/cursor1/original/2X/e/e41339a4992ac6385e2469b5a1a8f0506c1b8bfb.png)

---

<div class="post-metadata">

**Author:** ![litecode](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/litecode/32/2966_2.png) [@litecode](https://forum.cursor.com/u/litecode)\
**Post date:** [August 11, 2024, 2:15am UTC](https://forum.cursor.com/t/composer-stops-writing-files/7009/15 "2024-08-11T02:15:16Z")

</div>

@imrat - fyi - i just checked [cursor.com](https://www.cursor.com) this morning and `0.39.4` is available now 😅.

---

<div class="post-metadata">

**Author:** ![imrat](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/imrat/32/2837_2.png) [@imrat](https://forum.cursor.com/u/imrat)\
**Post date:** [August 11, 2024, 5:12am UTC](https://forum.cursor.com/t/composer-stops-writing-files/7009/16 "2024-08-11T05:12:18Z")

</div>

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 🤞

---

<div class="post-metadata">

**Author:** ![imrat](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/imrat/32/2837_2.png) [@imrat](https://forum.cursor.com/u/imrat)\
**Post date:** [August 11, 2024, 7:39am UTC](https://forum.cursor.com/t/composer-stops-writing-files/7009/17 "2024-08-11T07:39:23Z")

</div>

Nice new UI enhancement for file / folder creation.

 ![CleanShot 2024-08-11 at 08.38.32@2x](https://us1.discourse-cdn.com/cursor1/original/2X/2/2060de5f562a408ad1d1e3c6f148a67b4c4ae1f8.png)

---

<div class="post-metadata">

**Author:** ![imrat](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/imrat/32/2837_2.png) [@imrat](https://forum.cursor.com/u/imrat)\
**Post date:** [August 14, 2024, 12:13pm UTC](https://forum.cursor.com/t/composer-stops-writing-files/7009/18 "2024-08-14T12:13:38Z")

</div>

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.

 ![CleanShot 2024-08-14 at 13.12.15@2x](https://us1.discourse-cdn.com/cursor1/original/2X/2/2161fe83cc8893bbfc94f1b7a1278c968a1ccc2a.png)  
 ![CleanShot 2024-08-14 at 13.12.21@2x](https://us1.discourse-cdn.com/cursor1/original/2X/6/6ba26ba8b16a89f8c384820571bfccc723e0a964.png)  
 ![CleanShot 2024-08-14 at 13.12.38@2x](https://us1.discourse-cdn.com/cursor1/original/2X/d/da779d066cd0f46a57a4a39a243ca4dcddc8e916.png)  
 ![CleanShot 2024-08-14 at 13.12.45@2x](https://us1.discourse-cdn.com/cursor1/original/2X/4/4108742f9b63fb225f904241f1dc0263baa1cb69.png)

---

<div class="post-metadata">

**Author:** ![litecode](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/litecode/32/2966_2.png) [@litecode](https://forum.cursor.com/u/litecode)\
**Post date:** [August 14, 2024, 12:16pm UTC](https://forum.cursor.com/t/composer-stops-writing-files/7009/19 "2024-08-14T12:16:32Z")

</div>

@imrat

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

Does it ‘right itself’?

---

<div class="post-metadata">

**Author:** ![imrat](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/imrat/32/2837_2.png) [@imrat](https://forum.cursor.com/u/imrat)\
**Post date:** [August 14, 2024, 12:27pm UTC](https://forum.cursor.com/t/composer-stops-writing-files/7009/20 "2024-08-14T12:27:56Z")

</div>

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

[Next page](https://forum.cursor.com/t/composer-stops-writing-files/7009.md?page=2)
