Background Agents API - How to send followup once a PR was already created?

The followup endpoint seems to only allow sending a followup to a running agent.

But what about if the agent “completed” its work (incorrectly) and already auto-created a PR, but the user needs the agent to correct something? How should this be approached?

Even in the Cursor dashboard this is disallowed: “Cannot send message, Agent is archived”

I suppose one way is to create another agent and point it at the branch the last agent was working on?

Is the PR merged? If so, it might archive it - otherwise are you archiving the agent and then trying to add changes?

Yeah, you’re absolutely right :grinning_face_with_smiling_eyes: Seems like it’s working as expected. I refactored things and it works now. Probably I was indeed deleting the agent via the API.

1 Like

Glad to hear!