My company doesn’t have the latest version of git, so we can’t do git worktrees yet. I have a Figma build plugin that builds CMS widgets using figma layers and Figma MCP*, sometimes up to 30 input objects in a build (structured input).
Up until this month, I was relying on subagents to be reliably blocking so that changes to the git tree could be controlled. This is to increase accuracy and reduce drift per AI best practices.
Cursor editor now automatically, not as a setting, moves foreground subagents to the background. This one change breaks a lot of the batch building I had working in the editor. This is really unfortunate, and not good. This means run_in_background and it’s documentation doesn’t matter, and is deceptive. run_in_background documentation should read something like, “Set this if you want to run the subagent in the foreground for a bit, but we’ve added prompting in the Cursor editor to move the subagent into the background eventually, using the ‘I’ pronoun as if you the user asked for it. The duration of time is opaque, we just do this at some point. Otherwise, just set run_in_background true since that’s how we’d like every subagent to always function, we’re just going to go about it in a really opaque, unclear way.” I’m not trying to be harsh here but after 6 months of working and getting used to reliable functionality, this is how the change I’ve uncovered comes across. You can check your own code for the prompt, I was being told by agents that the subagents were being moved from foreground to the background because I had asked for it, and the prompt it returned was written in the first person like I had written it as the user. Again, not trying to judge, but it is deceptive functionality all around.
I’m currently in the process of building an entire Node.js Dashboard app to utilize Cursor SDK so I can be done with the opaque Cursor editor opinionation.
Thanks, this won’t change anything, but moving subagents from foreground to background automatically and not making that clear in documentation was bad.
Hi @John_O_Brien, this isn’t on a timer, and run_in_background still does what it says. What moves a running foreground subagent to the background is a message sent while the agent is working: when New Messages is set to steer the run, Cursor hands the subagent off to the background so the agent can read that message right away. That’s likely also why the agent described the move as something you asked for, since it followed a message from you, though we haven’t confirmed the exact wording it saw.
To keep subagents blocking during a batch:
Open Cursor Settings → Agents and find New Messages (searching for it works too).
Set it to Queue, so messages wait until the agent finishes.
Keep Manually Sent Messages from Queue on Interrupt and skip Send Now while a batch is running, since that stops the current turn instead.
A project rule telling the agent to always run subagents in the foreground also helps, because the model can still choose background on its own. If you move to the SDK, the same applies to run.steer(); sending the next message with agent.send() after the run finishes keeps things sequential.
Hi @Colin thx for the reply. This question seems off topic, but I believe it’s related enough to ask: has anything changed with the way subagents fundamentally communicate with each other starting from updates made on the week of October 9th?
Hi @John_O_Brien, no, nothing changed that week in how subagents hand their results back to the main agent, or in when a running foreground subagent gets moved to the background. That handoff on a message sent mid-run has worked the same way since August.
Two smaller things did change around then. When a foreground subagent fails or is stopped, the main agent now gets the subagent’s ID and the reason it failed, and resuming it keeps the same subagent type and model. Also, the way each subagent’s history is saved inside the chat changed to cut down on local storage, which shouldn’t affect what the main agent receives.
Worth knowing too: subagents don’t talk to each other directly. Each one reports back only to the main agent, which passes along whatever the next one needs.
If you’re seeing something specific change, like results coming back incomplete or one subagent not seeing another’s edits, can you describe what it looks like?
My subagent architecture is nested. For each structured input object (JSON object), one widget and its variants are built.
Each nested child subagent finishes its run and returns a final result with structured output included at the very end, something like “Run Id: {runId} Run Duration: {runDuration} Build type: {buildType}” and so on. This returned result was parsed by the parent agent, and which then did things accordingly, including ending its run. This even worked when adding a batch orchestrator subagent, so that the batch subagent → input subagent 1, input subagent 2, and so on would behave in an ordered, blocking, and sequential manner as expected, starting each input subagent, completing it, and then moving on to the next seamlessly.
While it’s possible I have just frustrated myself with recent changes to my plugin that I’ve yet to uncover (weeks of trying to diagnose), I have rolled back the plugin to what I know was a stable release that properly responded to all child subagent structured output return results, and my subagents remained broken.
Mentioning again, I am currently in the process of building a local dashboard app to call Cursor SDK agents directly. I’m hoping this circumvents any main agent chat window issues that seemed easy to decipher with AI but now no longer are.