*/
drainForegroundSpawns(): readonly SubagentSpawn[] {
for (const spawn of this._spawns.values()) {
if (!spawn.background) {
drained.push(spawn);
}
}
this._spawns.delete(spawn.toolUseId);
this._evictInnerEdgesFor(spawn.toolUseId);
}
}
/**