Both.
Connecticut had one segregated unit: the company of Capt. David Humphreys in the 4th Connecticut. The privates in that company were all men of color. The company never saw its commander, who was assigned as a staff officer to Washington. The men consistently refer to him as Elijah Humphreys in pension applications. Although it did see active service, it was disbanded after only a year, in 1782.
Most of the men on the Continental Line were on 3 or more year enlistments. Even if they were part of Capt. Humphreys Company during that year, they likely served with integrated companies for the rest of their time in the Army. Men who served in the militia would have served in integrated units.
