The second option.

I wanted to know a common mistake which we do “till we reach masjid/mosque the isha prayer have been completed by imam and also he started taraweeh and we didn’t offered isha…! So should be make another Jama’h for isha or should we gather in the congregation of taraweeh as isha and continue our left over rakah after imam done the tasleem.?