Cloud agent sending an unexpected "Reminder to commit and push if appropriate." message

Where does the bug appear (feature/product)?

Background Agent (GitHub, Slack, Web, Linear)

Describe the Bug

In last few hours, I have seen the cloud agents are somehow incorporating, after completing the user task, a last message like:

{
"id":  "9670887c-eb78-4555-8cff-f2ff76da5a77",  
"type":  "user_message",  
"text":  "Reminder to commit and push if appropriate."
},

These is probably OK for most cases, but in my case I am having a N8N step checking the final answers and when doing this, the final answer is no longer the proper one (the one read by the user), but another one like:

{
"id":  "1ffa2127-3664-4702-bea7-51303a4b1a32",
"type":  "assistant_message",
 "text":  "No commits are needed. The only untracked item in the workspace is the `anemone-availability-service/` directory that I cloned for investigation purposes. This is not something that should be committed to the `ai-agent-base` repository - it was only used to analyze recent changes and understand the deployment that caused the latency spike.\n\nSince this was an investigation/information request (not a code change request), there are no changes to commit or push."
}

I wonder why is this last message there? Can it be disabled? I guess is something you added to make sure no code changes are left without commit, but for those using the API to automate something on top of your agent this approach is killing it.

Steps to Reproduce

  1. Launch a cloud agent
  2. Wait for final response
  3. Inspect the conversation status with https://api.cursor.com/v0/agents/{{ $json.id }}/conversation

Expected Behavior

The last message in the conversation endpoint should match the one seen by the user in the web client. Any other operation like this commit reminder should be left out of the API (as you do in the web)

Operating System

Windows 10/11
MacOS
Linux

Version Information

Cloud agent

For AI issues: which model did you use?

Sonnet 4.5

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey! Thanks for the detailed report. Looks like this is a recent change: Cloud Agent now adds a user message at the end of the conversation, “Reminder to commit and push if appropriate”, to make sure code changes get committed.

The problem is that this internal message (and the agent’s reply to it) shows up via the /v0/agents/{id}/conversation API endpoint, while in the web client it’s filtered out.

I’ll pass this to the team. That internal reminder shouldn’t be included in the API conversation response.

As a temporary workaround, you can filter it on the N8N side: skip user_message entries where text equals “Reminder to commit and push if appropriate”, and instead of taking the last message in the array, take the previous assistant_message.

Let me know if you need anything else.

Thanks for the answer @deanrie ! excatly, ideally it should not be included in the API in same way that is not included in the web client. And yes, I am temporarily filtering them out.
Cheers!

1 Like

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.