# "Apply changes" buggy - 1 code block only + consider actual src + etc

**URL:** <https://forum.cursor.com/t/apply-changes-buggy-1-code-block-only-consider-actual-src-etc/2256>\
**Category:** Bug Reports\
**Created:** [January 2, 2024, 12:53pm UTC](https://forum.cursor.com/t/apply-changes-buggy-1-code-block-only-consider-actual-src-etc/2256 "2024-01-02T12:53:23Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![leoing](https://avatars.discourse-cdn.com/v4/letter/l/dec6dc/32.png) [@leoing](https://forum.cursor.com/u/leoing)\
**Post date:** [January 2, 2024, 12:53pm UTC](https://forum.cursor.com/t/apply-changes-buggy-1-code-block-only-consider-actual-src-etc/2256/1 "2024-01-02T12:53:23Z")

</div>

/edit Apply changes is awesome! (I made a feature request for it)

It used to be almost perfect! At the moment it seems to try to achieve too much. Garbles my code very frequently - going back to copy paste is no fun.

Suggested improvements:

- Apply only current code box I clicked. Often only this one makes sense, and much less chance to f\*ck up parts of the edit.

- Consider the actual code in my edit tab. Often it reverts back to older versions from the chat, or does not “see” my manual changes. Frustrating.

- Generally it clings too much to ancient parts of a conversation. Starting a new chat is a clunky workaround, where I also lose part of the useful context.

- After “apply change”: pressing Cmd-L often jumps to the wrong dialog (not the last). Makes me lose part of conversations, and is messy.

Thanks for your great product!

---

<div class="post-metadata">

**Author:** ![Jakob](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/jakob/32/93_2.png) [@Jakob](https://forum.cursor.com/u/Jakob)\
**Post date:** [January 11, 2024, 9:49pm UTC](https://forum.cursor.com/t/apply-changes-buggy-1-code-block-only-consider-actual-src-etc/2256/2 "2024-01-11T21:49:28Z")

</div>

Very true! “Apply” is kinda taking a shortcut right now by just creating a new message with the edit slash command and a generic message. This could be done way better.

---

<div class="post-metadata">

**Author:** ![biz](https://avatars.discourse-cdn.com/v4/letter/b/848f3c/32.png) [@biz](https://forum.cursor.com/u/biz)\
**Post date:** [January 16, 2024, 4:32am UTC](https://forum.cursor.com/t/apply-changes-buggy-1-code-block-only-consider-actual-src-etc/2256/3 "2024-01-16T04:32:31Z")

</div>

Also seeing these things. In particular, when I try to apply a relatively minor change, often the entire file will be changed, sometimes nonsensically. I end up copy-pasting a lot.

---

<div class="post-metadata">

**Author:** ![truell20](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/truell20/32/28583_2.png) [@truell20](https://forum.cursor.com/u/truell20)\
**Post date:** [January 16, 2024, 5:24am UTC](https://forum.cursor.com/t/apply-changes-buggy-1-code-block-only-consider-actual-src-etc/2256/4 "2024-01-16T05:24:47Z")

</div>

Agree that both the UI and the AI here are messy. We should have some “apply to file” changes coming out very soon 🙂

---

<div class="post-metadata">

**Author:** ![mtf](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/mtf/32/7788_2.png) [@mtf](https://forum.cursor.com/u/mtf)\
**Post date:** [January 16, 2024, 8:56am UTC](https://forum.cursor.com/t/apply-changes-buggy-1-code-block-only-consider-actual-src-etc/2256/5 "2024-01-16T08:56:32Z")

</div>

A related question: Are there any plans to increase the limit for file length to more than 400 lines for /edit? Love this feature, would be awesome to be able to use it in more files! 😊

---

<div class="post-metadata">

**Author:** ![leoing](https://avatars.discourse-cdn.com/v4/letter/l/dec6dc/32.png) [@leoing](https://forum.cursor.com/u/leoing)\
**Post date:** [January 16, 2024, 12:46pm UTC](https://forum.cursor.com/t/apply-changes-buggy-1-code-block-only-consider-actual-src-etc/2256/6 "2024-01-16T12:46:21Z")

</div>

Agree, failed on this 1st time an hour ago - long generated code, thus I rather don’t split it up.

---

<div class="post-metadata">

**Author:** ![truell20](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/truell20/32/28583_2.png) [@truell20](https://forum.cursor.com/u/truell20)\
**Post date:** [January 16, 2024, 11:07pm UTC](https://forum.cursor.com/t/apply-changes-buggy-1-code-block-only-consider-actual-src-etc/2256/7 "2024-01-16T23:07:45Z")

</div>

> [@mtf](#):
>
> A related question: Are there any plans to increase the limit for file length to more than 400 lines for /edit? Love this feature, would be awesome to be able to use it in more files! 😊

Yes! I think this is one of the main blocks to “apply” being useful.

---

<div class="post-metadata">

**Author:** ![Jakob](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/jakob/32/93_2.png) [@Jakob](https://forum.cursor.com/u/Jakob)\
**Post date:** [January 19, 2024, 3:00pm UTC](https://forum.cursor.com/t/apply-changes-buggy-1-code-block-only-consider-actual-src-etc/2256/8 "2024-01-19T15:00:10Z")

</div>

The “Apply” changes are live in the Nightly build.

But I think it’s still not just focusing on the changes of the current code box you clicked. For example here I only clicked on the “Apply to codebase” button from the first AI message, but it also did the changes from the second AI message.

 ![image](https://us1.discourse-cdn.com/cursor1/original/2X/1/16820beaaa117d999aa8b0cfadf28e600e25eb93.png)

---

<div class="post-metadata">

**Author:** ![truell20](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/truell20/32/28583_2.png) [@truell20](https://forum.cursor.com/u/truell20)\
**Post date:** [January 20, 2024, 9:16am UTC](https://forum.cursor.com/t/apply-changes-buggy-1-code-block-only-consider-actual-src-etc/2256/9 "2024-01-20T09:16:22Z")

</div>

@Jakob Good point, just went and fixed this. Will be rolled out to all users progressively over the next ~half day.

---

<div class="post-metadata">

**Author:** ![KangarooSalesman](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/kangaroosalesman/32/1060_2.png) [@KangarooSalesman](https://forum.cursor.com/u/KangarooSalesman)\
**Post date:** [January 20, 2024, 12:47pm UTC](https://forum.cursor.com/t/apply-changes-buggy-1-code-block-only-consider-actual-src-etc/2256/10 "2024-01-20T12:47:25Z")

</div>

Downloading nightly rn to test. As my project is getting bigger the “apply” is becoming crucial to function correctly, because in order for me to make a change I have to make small changes in 3-4 interconnected files and the default apply is getting buggy.

Also if the limit increases from 400 to let’s say 800+ lines it would also be a lifesaver, currently I am continually deleting snippets of code in order to press “Apply” and for it to function.

---

<div class="post-metadata">

**Author:** ![KangarooSalesman](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/kangaroosalesman/32/1060_2.png) [@KangarooSalesman](https://forum.cursor.com/u/KangarooSalesman)\
**Post date:** [January 20, 2024, 12:54pm UTC](https://forum.cursor.com/t/apply-changes-buggy-1-code-block-only-consider-actual-src-etc/2256/11 "2024-01-20T12:54:16Z")

</div>

Besides my suggestions, I might as well add that because of you guys after 4 months, I have almost completed making a full react native app that utilizes dozens of eBay API’s, while also hosting multiple data to my own google cloud SQL and Render for APIs

I do not have any knowledge of JavaScript,SQL or Python and the app is 100% generated by Cursor, no manual code inserted. It’s really remarkable what you have accomplished, congrats!

---

<div class="post-metadata">

**Author:** ![leoing](https://avatars.discourse-cdn.com/v4/letter/l/dec6dc/32.png) [@leoing](https://forum.cursor.com/u/leoing)\
**Post date:** [January 24, 2024, 3:04pm UTC](https://forum.cursor.com/t/apply-changes-buggy-1-code-block-only-consider-actual-src-etc/2256/12 "2024-01-24T15:04:31Z")

</div>

Seems to work much better now (only 1h of testing). Thanks for your efforts!!
