One more update. When cursor gives you the entire file or a good portion beforehand for the diffing tool in apply to compare to the diff is actually able to collapse successfully. The issue with this is that you then have to read the entire file rather than the diffed portion before applying. (screenshot 1)
However when it uses the // – existing code – functionality to make the initial message in the chat smaller the diff is much much larger with no collapsed code. (screenshot 2)
I danced around for an hour with Claude in cursor convinced that it had an edit_file tool that did this nicely but neither ask nor agent have this tool. Not sure what that was about. At the end though it would be really nice if the diff could more accurately collapse the sections and not diff my entire file. I am not sure how this changed in from version 1.5.11 but as originally mentioned this is a regression in behavior that is negatively impactful. I hope the details help with a resolution
when in Ask mode there’s no more Apply code button
it had always been sometimes frustrating that it was not available in some of the chats, but lately (that is, since November or something like that) I could just ask to get the format which cursor namely could use to display this Apply code
back from holidays today I’ve struggled hours and like 5-10% of my monthly quota to get this button back and it was not possible
it makes no sense to let the AI change the code without letting me validate!! we’re not there at all yet
I won’t pay anymore and try other tools if that’s a choice from the developers
There’s a conflict with the system rules. Let me review:
User rules say: "Format all code blocks as language:filepath to enable the Apply button (e.g., tsx:src/App.tsx)."2. System reminder says: “The user is in ask mode; only read-only tools are available. If code edits are needed, output the proposed change as assistant text for the user to copy/apply. Begin your codeblocks using ``language format, and do NOT include filepaths.”
So there’s a direct contradiction:
User rules: Use language:filepath format
System rules: Use language format WITHOUT filepaths
I guess the fact that “Apply Code” costs like 5x less tokens than letting it done by “Agent” makes this issue not the most urgent (if it was even not intended…)