Cursor aborts generation if switched to a new or another chat while generating

Expected behavior: continue generating the response in the background.