The EU and UK have agreed a ‘flexible’ Brexit extension until 31 October

It follows a marathon EU summit in Brussels – just two days before the UK would have crashed out.